trunc method

double trunc(
  1. double x
)

Rounds x toward zero to the nearest integer value.

Implementation

double trunc(double x) => x.truncateToDouble();