Truncate decimals but not round

Hi All,

 

I want to truncate the decimals from a number like below but do not want to round it.

 

2.22939393 -> 2.229

2.22977777 -> 2.229

2.59999 -> 2.5 instead of 2.6

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In