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

Answers