number-base

Factor handbook » Developer tools » The prettyprinter » Prettyprint control variables

Factor handbook » Developer tools » The prettyprinter » Prettyprint control variables

Prev: | line-limit |

Next: | string-limit? |

Vocabulary

prettyprint.config

Variable description

The number base in which the prettyprinter will output numeric literals. A value of 2 will print integers and ratios in binary with 0b. A value of 8 will print them in octal with 0o. A value of 16 will print all integers, ratios, and floating-point values in hexadecimal with 0x. Other values of number-base will print numbers in decimal, which is the default.

Variable value

Current value in global namespace:

Definition

prettyprint.config

Variable description

The number base in which the prettyprinter will output numeric literals. A value of 2 will print integers and ratios in binary with 0b. A value of 8 will print them in octal with 0o. A value of 16 will print all integers, ratios, and floating-point values in hexadecimal with 0x. Other values of number-base will print numbers in decimal, which is the default.

Variable value

Current value in global namespace:

10

Definition

This documentation was generated offline from a
`load-all`

image. If you want, you can also
browse the documentation from within the UI developer tools. See
the Factor website
for more information.

Factor 0.100 x86.64 (2240, heads/master-b8201cef85, Sep 24 2023 21:31:08)