Sather Home Page

Section 8.12.1.17:
$CARDINAL

pow( exp : NTP ) : NTP ; -- This feature returns self to the power exp, providing that the result -- is representable, otherwise it shall return nil! exp2 : NTP ; -- This feature returns the number which is 2 to the power of self, -- providing that this is representable, otherwise nil is to be returned. exp10 : NTP ; -- This routine returns 10 to the power of self provided that this is -- representable in the value domain, otherwise nil. log2 : NTP ; -- This feature returns the value of log(self) to the base 2, rounded if -- necessary for whole number classes.
Language Index Library Index Numeric Index
Comments or enquiries should be made to Keith Hopper.
Page last modified: Wednesday, 21 February 2001.
Produced with Amaya