I have usually multiplied everything by 100, then run my equation and then correct the output back two decimal places.
toggle quoted message
Show quoted text
--- In Crestron@..., Lincoln King-Cliby <lincoln@...> wrote:
MOD
A = Y MOD Z;
Though (in the 2 series at least) SIMPL+ has no concept of floating point math -- if you need to play with decimals you'll need to use some tricks
--
Lincoln King-Cliby, CTS
Commercial Market Director
Sr. Systems Architect | Crestron Certified Master Programmer (Silver)
ControlWorks Consulting, LLC
Crestron Services Provider
-----Original Message-----
From: Crestron@... [mailto:Crestron@...] On Behalf Of maglite4cell
Sent: Thursday, June 13, 2013 2:15 PM
To: Crestron@...
Subject: [Crestron] DivMod and Modulous in Simpl+
Has anyone ever used something like divmod in SIMPL+. I need to work with decimals. Any Ideas?
------------------------------------
Check out the Files area for useful modules, documents, and drivers.
A contact list of Crestron dealers and programmers can be found in the Database area.
Yahoo! Groups Links