- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-25-2023 06:08 PM
I created a business rule that sums the values in the related list and populates a column in the base record when a record is inserted or updated.
The business rule worked properly and the total amount was set in the column.
However, I wanted to display the total amount by rounding down the decimal places, but it cannot be rounded down.
Please tell me how to round down the decimal places.
This is the business rule I created.
When outputting to the log, decimal places are not displayed.
This is the value set in the record.
The column you want to set is of String type.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-25-2023 06:19 PM
@Kurumi Please replace line number 11 in your business rule as follows.
current.other_stock_total=total.toString().split('.')[0];
Hope this helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-25-2023 06:19 PM
@Kurumi Please replace line number 11 in your business rule as follows.
current.other_stock_total=total.toString().split('.')[0];
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-25-2023 06:30 PM
@Sandeep Rajput
thank you for your reply.
Thanks to you I solved it.