Skip to content

Commit

Permalink
Docs: TwicePrecision is an internal type (JuliaLang#42863)
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy authored and LilithHafner committed Feb 22, 2022
1 parent 3c27686 commit 9cbbf5d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion base/twiceprecision.jl
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,18 @@ div12(x, y) = div12(promote(x, y)...)
TwicePrecision{T}((num, denom))
A number with twice the precision of `T`, e.g., quad-precision if `T =
Float64`. `hi` represents the high bits (most significant bits) and
Float64`.
!!! warn
`TwicePrecision` is an internal type used to increase the
precision of floating-point ranges, and not intended for external use.
If you encounter them in real code, the most likely explanation is
that you are directly accessing the fields of a range. Use
the function interface instead, `step(r)` rather than `r.step`
# Extended help
`hi` represents the high bits (most significant bits) and
`lo` the low bits (least significant bits). Rational values
`num//denom` can be approximated conveniently using the syntax
`TwicePrecision{T}((num, denom))`.
Expand Down

0 comments on commit 9cbbf5d

Please sign in to comment.