sc_trunc_num({My_Field}, Decimal_Number)
|
|
This macro is used to truncate numerical values that exceed the decimals amount specified.
Parameter
|
Descri?003f006f |
| My_Field |
Variable with value to format (return in the same variable). |
| Decimal_Number |
Amount of decimals to display. |
Ex. 1: sc_trunc_num({my_value}, 2);
Input value = 1250.235 Output value = 1250.23
Input value = 1250.2 Output value = 1250.20
Input value = 1250 Output value = 1250.00
|
Macro Scope
|
Blank application
|
calendar application
|
chart application
|
Grid application
|
Search application
|
Form application
|
Control Form
|
Menu application
|
Responsive Menu
|
Tree menu
|
ReportPDF application
|
allMacros onExecute
|
ajaxFieldonBlur ajaxFieldonChange ajaxFieldonClick ajaxFieldonFocus allMacros onAfterDelete onAfterInsert onAfterUpdate onApplicationInit onBeforeDelete onBeforeInsert onBeforeUpdate onInit onLoadAll onRefresh onValidate onValidateFailure onValidateSuccess
|
allMacros onApplicationInit onFooter onHeader onInit
|
ajaxFieldonClick allMacros onApplicationInit onFooter onGroupBy onHeader onInit onNavigate onRecord
|
allMacros onApplicationInit onFilterInit onFilterRefresh onFilterSave onFilterValidate
|
ajaxFieldonBlur ajaxFieldonChange ajaxFieldonClick ajaxFieldonFocus allMacros onAfterDelete onAfterDeleteAll onAfterInsert onAfterInsertAll onAfterUpdate onAfterUpdateAll onApplicationInit onBeforeDelete onBeforeDeleteAll onBeforeInsert onBeforeInsertAll onBeforeUpdate onBeforeUpdateAll onClick onInit onLoadAll onNavigate onRecord onRefresh onValidate onValidateFailure onValidateSuccess
|
ajaxFieldonBlur ajaxFieldonChange ajaxFieldonClick ajaxFieldonFocus allMacros onApplicationInit onClick onInit onLoadAll onRefresh onValidate onValidateFailure onValidateSuccess
|
allMacros onApplicationInit onExecute onLoad
|
onApplicationInit onExecute onLoad
|
allMacros onExecute onLoad
|
allMacros onApplicationInit onFooter onHeader onInit onRecord
|
|