|
Truncate decimals
|
Previous Top Next |
| You can set this option as a fixed internal template-defined value or as a user-variable value.
|
|
|
| Template
|
|
|
| If you tick this option, the decimal portion of the amount will be eliminated. This is useful for countries that have currency values so high that they no longer use cents.
|
|
| For example, if you tick this option combined with an "increase" value of 2 as shown, the following changes occurs:
|
| @n10.3 à @n12
|
| @n9.2 à @n11
|
| @n-10.2 à @n-12
|
|
|
| This will work on every mask with integers and decimals, no matter how complex. For example, with an increase integer value of 2:
|
| @n-_10`3~U$S~B à @n-_12~U$S~B
|
|
|
| User Variable
|
|
|
| Here you enter the name of the variable that will hold the setting for truncation.
|
|
|
|
| This variable will contain a boolean value that specifies if the decimal portion of the amount will be eliminated. This is useful for countries that have currency values so high that they no longer use cents.
|
| The variable should be a BYTE.
|
| As the procedures of digit changer are globals, the variable should be global as well. The best option is to define it in the dictionary as Global Data, that way you won't have problems with multi-dll apps.
|
| When this variable contain a value, it will work exactly the same as the "Template" setting, so you can see the same examples above.
|
|
|
|
|
|
|