Function Number2Round
Outputs a number with trailing decimal zeros removed.
Number2Round([VALUE],[USECOMMAS])
Parameters
# | Type | Passing | Default | Name | Description/Comments |
---|---|---|---|---|---|
1 | decimal | required | n/a | VALUE | The value to format |
2 | boolean | optional | .F. | USECOMMAS | Uses 1,000 comma separator |
Returns
The formatted value as a string
Examples
Number2Round(AGENCYF1P,.F.)
If AGENCYF1P = 10.00, then 10 is output
If AGENCYF1P = 10.10, then 10.1 is output
If AGENCYF1P = 10.99, then 10.99 is output
If AGENCYF1P = 10.125, then 10.125 is output