Hello Ben,
I need to measure a DC voltage from 0 to 25V and print a value on the lcd with two decimal places (eg. "00.00 Vdc")
The decimal must be fixed.
How do I split the number?
Thanks
Pinto
Decimal Point
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Decimal Point
Hello Pinto
The floating point example should be useful to you here as it prints out numbers with decimal points and fractional values.
http://www.matrixmultimedia.com/Flowcode_Examples.php
The floating point example should be useful to you here as it prints out numbers with decimal points and fractional values.
http://www.matrixmultimedia.com/Flowcode_Examples.php
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 112
- Joined: Wed Oct 12, 2005 6:29 pm
- Location: USA
- Been thanked: 1 time
- Contact:
Re: Decimal Point
Pinto:
I use the attached macros to parse a three digit number and then to display the number with either 1 or 2 places to the right of the DP.
Hope this is helpful.
Jim
=========================================================
No attached files:
Pinto:
Well - sorry, apparently I am not allowed to upload .fcn files.
=========================================================
Thanks Ben! That's fixed.
To use/view these, save to disk then import them as macros into a new Flowcode session.
Jim
I use the attached macros to parse a three digit number and then to display the number with either 1 or 2 places to the right of the DP.
Hope this is helpful.
Jim
=========================================================
No attached files:
Pinto:
Well - sorry, apparently I am not allowed to upload .fcn files.
=========================================================
Thanks Ben! That's fixed.
To use/view these, save to disk then import them as macros into a new Flowcode session.
Jim
-
- Posts: 112
- Joined: Wed Oct 12, 2005 6:29 pm
- Location: USA
- Been thanked: 1 time
- Contact: