Salesforce Fact #879 | Removing decimals in JS

In order to remove decimals from a number in JS, we can make use of the bitwise not operator. Same can be used in LWC.

Attached is an example screenshot.



Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow