GNU Info

Info Node: (guile.info)Conversion

(guile.info)Conversion


Next: Complex Prev: Comparison Up: Numbers
Enter node , (file) or (file)node

Converting Numbers To and From Strings
--------------------------------------

 - primitive: number->string n [radix]
     Return a string holding the external representation of the number
     N in the given RADIX.  If N is inexact, a radix of 10 will be used.

 - primitive: string->number string [radix]
     Returns a number of the maximally precise representation expressed
     by the given STRING. RADIX must be an exact integer, either 2, 8,
     10, or 16. If supplied, RADIX is a default radix that may be
     overridden by an explicit radix prefix in STRING (e.g. "#o177").
     If RADIX is not supplied, then the default radix is 10. If string
     is not a syntactically valid notation for a number, then
     `string->number' returns #f.  (r5rs)


automatically generated by info2www version 1.2.2.9