Hi! > var float x > x = (adc_read(channel) * 12)/1023 > print_float_dec(serial_hw_data,x)
You don't need floats for that, you can do it in fixed point. The JAL compiler, unlike most other compilers, supports integer variables of arbitrary size. You need 50 decimal places before and 50 after the point? Fine! Define var byte*42 x and store the value multiplied by 10^50. Addition and subtraction can be done right away. Multiplication and division needs adjustment, but that's not hard. I'm thinking about a lib for that for some time now... > var string s > s = 'Hello' > s = s + 'world' Well, yes. That's not possible without modifying the compiler. Greets, Kiste -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
