This section focuses on formatting the weight range (e.g., “10 – 20 lbs”) into a more readable format with one decimal place. Assign Original String: The weight range string is stored in the dimension_range variable. <#assign dimension_range = itemLineDetails.weightrange /> Extract Numeric and Unit Parts: The numeric part of the weight range is separated from… Continue reading Formatting Weight Range : Adjusting decimal places in strings
Tag: 2 decimal places
How to display $ currency and value upto 2 decimal places at same time in email template page
We can use (?string.currency) in the email template of the netsuite.The most basic way to format a number as Currency is to add ?string.currency onto the end of the variable that is being used. This will bring any numbers to 2 decimal places and will also put a $ next to the number. Also, negative… Continue reading How to display $ currency and value upto 2 decimal places at same time in email template page
Convert number to 2 decimal places without using any function
//Info: CDUS-1294 We have met a scenario where we need to set the value to 2 decimal points, which is populated after a calculation. We can do the same by defining a function,