Ok thanks,
I just didn't want to go down that road if there was a better way,
Well, you could use the floating point math routines on melabs website, microchip's site, etc.etc. or write your own.
The trick to doing it the way you've got set up above is to make sure that no individual variables overflow or underflow, no matter what values end up going into them. It just takes a bit of thinking thru it all...
I would like to not use those as I want to learn how to do this, but I sure could use some help i'm a bit lost here. Maybe just working on it too long.
The number I expect is 1-3 digits. Example
If the number is 123 it would be 1.23
If its 12 .12
If its just 1 then would be .01
I just can't seem to wrap my mind around how to actually accomplish this.
You should have a look at DEC and DIG modifier and keep your maths as is.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Ok guys thanks for the input I think im going to call it a night and take a fresh look at it again tomorrow.
Hopefully it will all fall into place![]()
Bookmarks