-
Hi there, I need to add 0,5 before doing the (very convenient) 2 f.n Thanks, Ray |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
To add and subtract fixed-point numbers you use the double-cell addition and subtraction words |
Beta Was this translation helpful? Give feedback.
-
Danke Schon! I didn't know that double-cell was identical to fp, nice and simple, I love it. |
Beta Was this translation helpful? Give feedback.
-
Yes I as using f/ and that's what puzzled me when I did a f+ that it wasn't there. And yes I felt kinda dumb not realising myself that d+ and d- work the same on double-cell :D |
Beta Was this translation helpful? Give feedback.
-
@rdoetjes I'm going to use these for clarity (and compatibility with a FlashForth project) : fconstant [inlined] 2constant ; |
Beta Was this translation helpful? Give feedback.
To add and subtract fixed-point numbers you use the double-cell addition and subtraction words
d+
andd-
, since there is no difference between fixed-point and double-cell addition and subtraction.