It is unknown what data.value
even is; this might be an int
division in a float
context - where var d1: Double = data.value
might require an explicit cast. Convert to and use java.math.BigDecimal
if you require more precision than float
/ double
can offer.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…