Code: Select all
a=10
b=20
c=a-b
do I have to declare a container type somewhere ?
cheers
Code: Select all
a=10
b=20
c=a-b
Code: Select all
// subtrtaction test
a=10.0
b=20.0
c = (a-b)
start:
sprintf (result01, "RESULT:%u", c)
print(result, 0,0)
frame()
go start
ah, that would make senseNightRadio wrote:%u - unsigned integer
Try to use %d or %i - it is for signed numbers.
You can read full description here: http://www.cplusplus.com/reference/clib ... io/printf/