Hallo,
auf der zitierten Seite 41 (Basic Commands) steht:
Das heißt eben dass es nicht geht. Bei allen PICAXE wird nur die Integerarithmetik unterstützt, was ja in den meisten Fällen auch ausreicht.The microcontroller supports word (16 bit) mathematics. Valid integers are 0 to
65335. All mathematics can also be performed on byte (8 bit) variables (0-255).
The microcontroller does not support fractions or negative numbers.
However it is sometimes possible to rewrite equations to use integers instead of
fractions, e.g.
let w1 = w2 / 5.7
is not valid, but
let w1 = w2 * 10 / 57
is mathematically equal and valid.
Operationen mit gebrochenen Zahlen werden definitiv nicht angeboten.
Viele Grüße
Jörg
Lesezeichen