Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - precised data handling

(you are viewing a thread; or go back to list of threads)

precised data handling (by Kumar)
Hi,

Kumar here. Is it possible to upgrade the compiler, so it can handle more precised value, like supporting decimal point.
For example, when an analog data of 1023 divide with 100, the answer should be 10.23. But currently ldmicro is not handle such value. I'm sure this precised data handling will be very useful, especially in data manipulation/ handling applications. Thanks.
Fri Dec 17 2010, 07:49:42
(no subject) (by Max)
Hi Kumar,

you could handle the decimal point in to an other variable... but it require sum math

Exemple
var = 1023

var / 100 = var1 = 10

var1 X 100 = var2 = 1000

var - var2 = var3 = 23

so the answer is (var1) . (var3) or 10.23
Fri Dec 17 2010, 12:02:52
(no subject) (by MAX)
LD exemple
Sun Nov 13 2011, 09:43:53, download attachment Decimal point LCD.ld
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):