c# round number down

C#
double number = 1.5362
  
int floored = Math.Floor(number)
//rounds number to 1
Source

Also in C#: