0
var a:Double = 7599
var b:Double = 7598

var x = a / 100 (75.98999999999999)
var y = b / 100 (75.98)

Can anyone tell me why y is calculating to 2 decimal places and more importantly why x isn't?

I basically use this function in a RoundUp and RoundDown function but it doesn't work for certain numbers.

rmaddy
  • 307,833
  • 40
  • 508
  • 550
LateNate
  • 728
  • 8
  • 22

0 Answers0