numbers.tfilesource file

TADS 3 library - number handling. This module provides utility functions for converting numbers to strings in various formats.

Summary of Classes  

(none)

Summary of Global Objects  

(none)

Summary of Global Functions  

intToBinary  intToRoman 

Global Functions  

intToBinary (val)numbers.t[17]

Format a number as a binary string.

intToRoman (val)numbers.t[59]
Convert an integer number to Roman numerals. Returns a string with the Roman numeral format. This can only accept numbers in the range 1 to 4999; returns nil for anything outside of this range.

TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3