1 Application
2 Autosave
3 Canvas
4 Color Model
5 Color Prefs
6 Color
7 Comment Box
8 Editor Snip
9 Editor
10 Exit
11 Finder
12 Frame
13 Group
14 GUI Utilities
15 Handler
16 Icon
17 Keymap
18 Menu
19 Mode
20 Number Snip
21 Panel
22 Pasteboard
23 Path Utils
24 Preferences
25 Preferences, Textual
26 Scheme
27 Text
28 Test
29 Version
Index
On this page:
number-snip: snip-class%
read
number-snip: make-repeating-decimal-snip
number-snip: make-fraction-snip
Version: 4.0.2

 

20 Number Snip

number-snip:snip-class% : class?

  superclass: snip-class%

(send a-number-snip:snip-class read f)  snip

  f : stream-in

Overrides read in snip-class%.

Constructs a number snip from its input.

(number-snip:make-repeating-decimal-snip

 

num

 

 

 

show-prefix?)

 

  (is-a?/c snip%)

  num : number?

  show-prefix? : boolean?

Makes a number snip that shows the decimal expansion for number The boolean indicates if a #e prefix appears on the number.

See also number-snip:make-fraction-snip.

(number-snip:make-fraction-snip

 

num

 

 

 

show-prefix-in-decimal-view?)

 

  (is-a?/c snip%)

  num : number?

  show-prefix-in-decimal-view? : boolean?

Makes a number snip that shows a fractional view of number. The boolean indicates if a #e prefix appears on the number, when shown in the decimal state.

See also number-snip:make-repeating-decimal-snip.