class
superclass:snip-class%
Overrides read in snip-class% .Constructs a number snip from its input.
procedure
num[ #:exact-prefixexact-prefix#:inexact-prefixinexact-prefix#:fraction-viewfraction-view])num:number?= 'never
The exact-prefix argument specifies whether the representation should carry a #e prefix: Always, never, or when necessary to identify a representation that would otherwise be considered inexact.
Similarly for inexact-prefix. Note however that 'when-necessary is usually equivalent to 'never, as inexact numbers are always printed with a decimal dot, which is sufficient to identify a number representation as inexact.
The fraction-view field specifies how exact non-integer reals - fractions - should be rendered: As a mixed fraction, an improper fraction, or a decimal, possibly identifying periodic digits. For 'decimal, if it’s not possible to render the number as a decimal exactly, a fraction representation might be generated. This is currently the case for complex numbers.
procedure
[ #:exact-prefixexact-prefix#:inexact-prefixinexact-prefix#:fraction-viewfraction-view])= 'never
procedure
v:any/c
procedure
( number-snip:get-number ns)→real?
procedure
( number-snip:remove-decimal-looking-number-snips-on-insertion-mixin text%)