Page 1 of 1

Flowcode v3 help with floating variables

Posted: Tue Oct 19, 2010 6:30 pm
by spryderweb
How can I create a floating variable ie. real number (decimal). I need to create a calculation that is equal to a decimal number for voltage control. For example....need 1.2 volts not 1 volt.
Thanks

Re: Flowcode v3 help with floating variables

Posted: Tue Oct 19, 2010 7:25 pm
by medelec35
Hiya spryderweb
Try this attachment. (That's if want to create a voltmeter of course, and not just gave 1.2 Volts as an example)
I originally did the voltmeter with Flowcode V4.
See:
http://www.matrixmultimedia.com/mmforum ... 99&p=20331
I converted it to V3 for you
It displays 0 - 5V to 2 d.p. with a bar-graph function
Hope this is accurate enough for your needs as there are rounding errors.