Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/somefn/js/decimal.ts>toIntFromFloat

some functions for deno
Go to Latest
function toIntFromFloat
import { toIntFromFloat } from "https://deno.land/x/somefn@v0.31.0/js/decimal.ts";

将浮点数转为整数形式 (仅支持 15 位精度)

Parameters

v: string

Returns

{ int: number; precision: number; }