DefinitelyTyped/types/math-trunc/math-trunc-tests.ts
2019-04-02 19:09:07 +01:00

8 lines
113 B
TypeScript

import trunc = require("math-trunc");
// $ExpectType number
trunc(13.37);
// $ExpectType number
trunc(-0.123);