effect-io-ai

Package: effect
Module: Number

Number.parse

Tries to parse a number from a string using the Number() function. The following special string values are supported: “NaN”, “Infinity”, “-Infinity”.

Signature

declare const parse: (s: string) => Option<number>

Source

Since v2.0.0