code: public static float trunc(Float number) {
          if (number < 0f) {
              return (float)Math.ceil(number.doubleValue());
          }
          return (float)Math.floor(number.doubleValue());
      }
docs: Truncate the value
  
  @param number a Float
  @return the Float truncated to 0 decimal places
  @since 1.6.0