function toIntFromFloatimport { toIntFromFloat } from "https://dotland.deno.dev/x/somefn@v0.1.1-jsr/js/decimal.ts"; toIntFromFloat(v: string): { int: number; precision: number; }将浮点数转为整数形式 (仅支持 15 位精度) Parametersv: stringReturns{ int: number; precision: number; }