Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/31/02 17:31
Read: times


 
#35305 - RE: fractional values in controller
... I divide this by 2 I get a fractional value of 0.5 in decimal I need to know how can I use this value or how I could represent this value in the controller for manipulation of further tasks.

You can not work with fractionals, only display them.

Say you want two digits after the decimal point on your display, you just represent all values internal to the '51 as (value*100), then when you display, you just insert a decimal point at the right place.

Erik


List of 3 messages in thread
TopicAuthorDate
fractional values in controller            01/01/70 00:00      
RE: fractional values in controller            01/01/70 00:00      
RE: fractional values in controller            01/01/70 00:00      

Back to Subject List