MCPcopy Create free account
hub / github.com/simstudioai/sim / trimTrailingZeros

Function trimTrailingZeros

apps/sim/app/(landing)/models/utils.ts:222–224  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

220}
221
222function trimTrailingZeros(value: string): string {
223 return value.replace(/\.0+$/, '').replace(/(\.\d*?)0+$/, '$1')
224}
225
226function slugify(value: string): string {
227 return value

Callers 3

formatTokenCountFunction · 0.85
formatFileSizeFunction · 0.85
formatPriceFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected