Syntax to truncate decimal place

HI i am using SciTE editor to code in Ruby.

What is the syntax to truncate decimal place

F5

F5