You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Measuring Performance of Decimal Truncation Methods
The following operations all result in 2:
// fast, and the least amount of characters~~2.5// fast2.5|0// a little slower, but still fast, and probably the most readableMath.trunc(2.5)// embarrassingly slowparseInt(`${2.5}`,10)