Skip to content

Home > sculp-js > isFloat

isFloat() function

判断字符串是否为浮点数,即必须有小数点的有理数

Signature:

typescript
isFloat: (value: string) => boolean

Parameters

Parameter

Type

Description

value

string

Returns:

boolean

{boolean}

Released under the MIT License.