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