FRACT of Zero
Posted: Mon Apr 11, 2022 10:19 am
'Hi Mr Kibernetik,
'why is this happening?
a=7.1
print integ(a) 'answer is 7, all good
b=fract(a)*60 'that is, 0.1 * 60 = 6
print b 'answer is 6, all good
print fract(b) 'displaying answer as 1
'if b=6 then why is it that fract(b) equals 1, should it not be zero?
Thanks
'why is this happening?
a=7.1
print integ(a) 'answer is 7, all good
b=fract(a)*60 'that is, 0.1 * 60 = 6
print b 'answer is 6, all good
print fract(b) 'displaying answer as 1
'if b=6 then why is it that fract(b) equals 1, should it not be zero?
Thanks