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 #245 | Enabling Case Assignment checkbox