Sather Home Page

Section 8.12.1.15:
$SIMPLE_NUM

two : NTP ; -- This feature returns the numeric value 'two' as a number of the -- inheriting class. max( other : NTP ) : NTP ; -- This routine returns the value which is the larger of self and other. min( other : NTP ) : NTP ; -- This feature returns the value which is the lesser of self and other. in_range( lower : NTP, upper : NTP ) : BOOL ; -- This predicate returns true if and only if self has a value between -- lower and upper inclusive. in_range( rng : $RANGE{NTP} ) : BOOL ; -- This predicate returns true if and only if self has a value within -- the given range. in_tolerance( tolerance, val : NTP ) : BOOL ; -- This predicate returns true if and only if the value of self is -- within the given tolerance of val.
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