How to round to the tenths place

I need to round to the tenths place. For instance I need 18.4678 to round to 18.5. How is this possible? I know there is a built in function for the hundredths place, but I don't know about the tenths place.

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    edited October 2014

    roundTo (Function): Round a real number to a specific decimal digit. Unlike the precision function, the return value is still a number, not text. To pad the decimal with 0's for display purposes, use the precision function instead.

    Examples:

    roundTo(0.12345, 3) = 0.123;
    roundTo(2.5, 0) = 3;
    roundTo(4, 2) = 4;

    ... From the definitions page in the cookbook.

  • MattButlerStudiosMattButlerStudios Member Posts: 486

    @jamie_c‌ I appreciate the help. It worked!

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Sweet! :)

Sign In or Register to comment.