| THE META-HTML LANGUAGE REFERENCE MANUAL

| [TOC] |

## Manual Page Viewer

Name: MHTML::DECIMAL-PLACES

Section: Arithmetic Operators

Synopsis:

`mhtml::decimal-places`

Description:

Controls the number of decimal places which arithmetic functions produce. The default value of this variable is `2`, but for times when you need greater resolution in your calculations, you may wish to set it higher.

        <set-var mhtml::decimal-places = 10>
        9 / 3.0 = <div 9 3.0>
       10 / 3.0 = <div 10 3.0>
        9 / 3   = <div 9 3>
       10 / 3   = <div 10 3>
        <unset-var mhtml::decimal-places>
        9 / 3.0 = <div 9 3.0>
       10 / 3.0 = <div 10 3.0>
        9 / 3   = <div 9 3>
       10 / 3   = <div 10 3>

produces:

    9 / 3.0 = 3.0000000000
       10 / 3.0 = 3.3333333333
        9 / 3   = 3.0000000000
       10 / 3   = 3.3333333333

        9 / 3.0 = 3.00
       10 / 3.0 = 3.33
        9 / 3   = 3
       10 / 3   = 3

Edit Pointer
Function Index
Variable Index
Variable Editor

The META-HTML Reference Manual V1.4 Copyright © 1995, 1996, Brian J. Fox, 1996, 1997 Universal Access Inc.
Found a bug? Send mail to bug-manual@metahtml.com