(n: number)
| 1329 | * |
| 1330 | * **Details** |
| 1331 | * |
| 1332 | * Accepts the same syntax as `fromString`. Use `fromString` when invalid input |
| 1333 | * should be represented as `Option.none` instead of throwing. |
| 1334 | * |
| 1335 | * **Example** (Parsing decimal strings unsafely) |
| 1336 | * |
| 1337 | * ```ts import.meta.vitest |
| 1338 | * import { BigDecimal } from "effect" |
| 1339 | * |
| 1340 | * BigDecimal.fromStringUnsafe("123") // => BigDecimal.fromBigInt(123n) |
| 1341 | * BigDecimal.fromStringUnsafe("123.456") // => BigDecimal.make(123456n, 3) |
| 1342 | * ``` |
| 1343 | * |
| 1344 | * @see {@link fromString} for returning `Option.none` on invalid input |
| 1345 | * |
| 1346 | * @category constructors |
no test coverage detected
searching dependent graphs…