Overview  Index  Help 
OLE/SML#

OLE_DECIMAL


signature OLE_DECIMAL =
sig
  type decimal = { scale : Word8.word,  value : IntInf.int}
  val MIN_SCALE : Word8.word
  val MAX_SCALE : Word8.word
  val MIN_VALUE : IntInf.int
  val MAX_VALUE : IntInf.int
  val toString : decimal -> string
  val compare : decimal * decimal -> order
end

This module provides facilities for conversion between OLE DECIMAL data type and SML data type.

OLE DECIMAL structure is defined as

 typedef struct tagDEC {
  WORD wReserved;
  BYTE scale;
  BYTE sign;
  ULONG Hi32;
  ULONGLONG Lo64;
 } DECIMAL;
 
( http://msdn.microsoft.com/en-us/library/cc237603(PROT.13).aspx )

Author:
YAMATODANI Kiyoshi
Copyright:
(c) 2007, Tohoku University.
Version:
$Id: SigOLE_DECIMAL.html,v 1.2 2010/07/09 03:09:29 kiyoshiy Exp $

 
Type detail

decimal

type decimal =
     {
       (* scale must be in the range [0, 28] *) scale : Word8.word,
       (* between MinValue and MaxValue, including.*)
       value : IntInf.int
     }

     
Value detail

MIN_SCALE

val MIN_SCALE : Word8.word

minimum number stored in the scale field of decimal.


MAX_SCALE

val MAX_SCALE : Word8.word

maximum number stored in the scale field of decimal.


MIN_VALUE

val MIN_VALUE : IntInf.int

minimum number stored in the value field of decimal.


MAX_VALUE

val MAX_VALUE : IntInf.int

maximum number stored in the value field of decimal.


toString

val toString : decimal -> string


compare

val compare : decimal * decimal -> order

 


Overview  Index  Help 
OLE/SML#