-->
Page 1 of 1

V1.08: Bug in arithmetic operators with numbers less than 1

PostPosted: Mon Nov 02, 2015 12:58 pm
by matherp
If any number less than 1 is assigned to a variable and then any arithmetic on that variable will treat it as zero

e.g.
x = 0.5
y = 2.0 + x 'same for x + 2.0 and also all other operators
print x
print y

prints:
0.5
2.00

Re: V1.08: Bug in arithmetic operators with numbers less tha

PostPosted: Mon Nov 02, 2015 1:10 pm
by matherp
Based on further testing, the fault is actually more general. Floating point numbers will print correctly but are rounded down to an integer before any arithmetic

Re: V1.08: Bug in arithmetic operators with numbers less tha

PostPosted: Mon Nov 02, 2015 1:39 pm
by Mmiscool
Uploaded new build solving this issue.