MCPcopy Create free account
hub / github.com/apitable/apitable / normalDecimal

Function normalDecimal

packages/core/src/utils/number.ts:174–176  ·  view source on GitHub ↗
(decimal: number)

Source from the content-addressed store, hash-verified

172// decimal point does not advance by 1
173// For example, 1.23 and 1.26 both return 1.2
174export function normalDecimal(decimal: number) {
175 return Math.floor(decimal * 10) / 10;
176}
177
178// Storage unit conversion, parameter unit is b
179// Rule: normal conversion, do not do 1 processing

Callers 3

useAnimationNumFunction · 0.90
normalByteMGArrFunction · 0.85
byteMGArrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected