new BigFraction(nopt, dopt)
- Description:
Optimized Constructor.
Supports:
- Number (Float): Uses bitwise extraction (Fastest, Exact).
- Number (Integer): Direct BigInt conversion.
- String: "1.5", "1/2", "-5".
- BigInt / BigFraction.
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
n |
BigFraction | bigint | number | string | BigFloat |
<optional> |
The numerator or the whole value. |
d |
bigint | number | string |
<optional> |
The denominator. |