- 1.0 + 0.1 + 0.1 + 0.1 is not 1.3
-- 1.
30000000000001 (???)
- there are some solution (using BigDecimal, using % ...)
- need version value to check whether template is updated or not
-- so, simply change to use one digit of double value
Change-Id: Ib7f7b8030f1ff2d0cf60b1352d5e8cd543e9c81d
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
}
public void updateVersion() {
- this.version += 0.1;
+ double ver = version + 0.1;
+ version = Double.parseDouble(String.format("%.1f", ver));
}
public String getManufacturer() {