with regards to a thread that I posted earlier dealing with rounding down - I found the following formula for achieving this :

tempcalc = int(tempcalc * 100 + 0.5) / 100

if tempcalc = 0.016 - u get 0.02

if tempcalc = 0.015 - u get 0.01

which is the result I wanted.

Further to this, how do I return just the decimal part of a double defined variable & know how many decimal places there are?

eg - if I have 12.000156

I just want to return 000156 without the dec.point & know that I have 6 figures.