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 #218 | Blank picklist value is actually NULL

Salesforce Fact #947 | Resolving dashboard logged-in user limit error

Salesforce Fact #929 | Nth highest in screen flow