I have data (all less than 1) and I need to round down to the nearest 1/2, 1/4, 1/8, 1/16, and 1/32.(adsbygoogle = window.adsbygoogle || []).push({});

I have no idea how to do this mathematically, but I'm guessing I use log or pow functions.

For example:

0.81 = 0.5 or 1/2

0.33 = 0.25 or 1/4

0.18 = 0.125 or 1/8

Any help would be appreciated.

Thanks

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# I Rounding decimals to ruler scale (log, pow math?)

Have something to add?

Draft saved
Draft deleted

Loading...

Similar Threads - Rounding decimals ruler | Date |
---|---|

B Calculating the area of a circle or square using decimals | Nov 9, 2017 |

B Calculator automatic rounding is screwing up my calculation. | Aug 7, 2016 |

Best way to represent a two-rounds election | Dec 10, 2015 |

Why is the hyperbola round at the bottom? | Jul 14, 2014 |

Question about the rounding off rule. | Jun 24, 2014 |

**Physics Forums - The Fusion of Science and Community**