|
10 | 10 | Base: (*), +, -, /, <, <=, ==, >, >=, ^, ceil, cmp, convert, copysign, div,
|
11 | 11 | exp, exp2, exponent, factorial, floor, fma, hypot, isinteger,
|
12 | 12 | isfinite, isinf, isnan, ldexp, log, log2, log10, max, min, mod, modf,
|
13 |
| - nextfloat, prevfloat, promote_rule, rem, rem2pi, round, show, |
| 13 | + nextfloat, prevfloat, promote_rule, rem, rem2pi, round, show, float, |
14 | 14 | sum, sqrt, string, print, trunc, precision, exp10, expm1,
|
15 | 15 | gamma, lgamma, log1p,
|
16 | 16 | eps, signbit, sin, cos, tan, sec, csc, cot, acos, asin, atan,
|
|
118 | 118 | convert(::Type{Rational}, x::BigFloat) = convert(Rational{BigInt}, x)
|
119 | 119 | convert(::Type{AbstractFloat}, x::BigInt) = BigFloat(x)
|
120 | 120 |
|
| 121 | +float(::Type{BigInt}) = BigFloat |
| 122 | + |
121 | 123 | # generic constructor with arbitrary precision:
|
122 | 124 | """
|
123 | 125 | BigFloat(x, prec::Int)
|
|
0 commit comments