Comment #4 on issue 197 by robhamerling: Missing print procedure for float
variables
http://code.google.com/p/jallib/issues/detail?id=197
The code in comment #2 can be simplified to:
-- ---------------------------------------------------------
-- Simple float to ASCII conversion format: [-]######.yyyyyy
-- Notes: - integer part limited to value of an sdword
-- - fraction limited to 6 digits
--
procedure print_float_dec(volatile byte out device, float in n) is
var sdword sdw
sdw = n -- integer part
print_sdword_dec(device, sdw)
n = n - sdw -- keep fraction
device = "." -- decimal point
print_sdword_dec(device, 1000000 * n) -- fraction
end procedure
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/jallib.
For more options, visit https://groups.google.com/d/optout.