Fred,
See the next example
Code: Select all
OpenConsole()
a.f=15.25
b.f=15.87
c.f=a.f+b.f
PrintN(StrF(c.f,2))
Input()
rounded, it's cutted.
Rounded the decimals is the solution.
Manolo
Code: Select all
OpenConsole()
a.f=15.25
b.f=15.87
c.f=a.f+b.f
PrintN(StrF(c.f,2))
Input()
Code: Select all
a.f=15.25 : b.f=15.87 : c.f=a.f+b.f
Debug(StrF(c.f,2))