Caldora Beaumont Posted January 1 Share Posted January 1 I have a thermometer object that works fine, but I'd like a math geek to help me with the result that gets posted to chat, namely, the amount of numbers reported after the decimal. Here's the code snippet: float temperatureF = ((((pascal * (2 * llPow(10,22)))/(1.8311*llPow(10,20))/ 8.3)/19.85553747) + (sun.z * 10)); Which returns a value like this: 73.688260 °F ( 23.160140 °C) There are too many numbers here. I'd prefer just one or two after the decimal, i.e. 73.6 °F ( 23.1 °C). How do I re-write the snippet above to delete the last five numbers after the decimal? Link to comment Share on other sites More sharing options...
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now