Overview  Index  Help 
Standard ML Basis Library

NumFormat


structure NumFormat : sig
                        val fmtWord : StringCvt.radix -> Word32.word -> string
                        val fmtInt : StringCvt.radix -> Int32.int -> string
                      end =
struct
  structure W = InlineT.Word32
  structure I = InlineT.Int31
  structure I32 = InlineT.Int32
  val <
  val -
  val *
  val div
  val mkDigit
  val wordToBin
  val wordToOct
  val wordToDec
  val wordToHex
  val fmtW
  val fmtWord : StringCvt.radix -> Word32.word -> string
  val i2w
  val fmtInt : StringCvt.radix -> Int32.int -> string
end

       
Value detail

<

val <


-

val -


*

val *


div

val div


mkDigit

val mkDigit


wordToBin

val wordToBin


wordToOct

val wordToOct


wordToDec

val wordToDec


wordToHex

val wordToHex


fmtW

val fmtW


fmtWord

val fmtWord : StringCvt.radix -> Word32.word -> string


i2w

val i2w


fmtInt

val fmtInt : StringCvt.radix -> Int32.int -> string

 


Overview  Index  Help 
Standard ML Basis Library

This document may be distributed freely over the internet as long as the copyright notice and license terms below are prominently displayed within every machine-readable copy.

Copyright © 2003 AT&T and Lucent Technologies. All rights reserved.

Permission is granted for internet users to make one paper copy for their own personal use. Further hardcopy reproduction is strictly prohibited. Permission to distribute the HTML document electronically on any medium other than the internet must be requested from the copyright holders by contacting the editors. Printed versions of the SML Basis Manual are available from Cambridge University Press. To order, please visit www.cup.org (North America) or www.cup.cam.ac.uk (outside North America).