Number.st
changeset 7214 2315f1d48b84
parent 6899 9ed8494c9f10
child 7261 f35fc9cee675
equal deleted inserted replaced
7213:6daeac546b0d 7214:2315f1d48b84
   371     "
   371     "
   372 
   372 
   373     "Modified: / 14.4.1998 / 18:47:47 / cg"
   373     "Modified: / 14.4.1998 / 18:47:47 / cg"
   374 ! !
   374 ! !
   375 
   375 
   376 
       
   377 !Number methodsFor:'Compatibility - Squeak'!
   376 !Number methodsFor:'Compatibility - Squeak'!
   378 
   377 
   379 asSmallAngleDegrees
   378 asSmallAngleDegrees
   380 	"Return the receiver normalized to lie within the range (-180, 180)"
   379 	"Return the receiver normalized to lie within the range (-180, 180)"
   381 
   380 
   539     ^ Complex fromReal:self
   538     ^ Complex fromReal:self
   540 
   539 
   541     "Modified: / 9.7.1998 / 10:18:16 / cg"
   540     "Modified: / 9.7.1998 / 10:18:16 / cg"
   542 !
   541 !
   543 
   542 
       
   543 asNumber
       
   544 
       
   545     ^ self.
       
   546 !
       
   547 
   544 asPoint
   548 asPoint
   545     "return a new Point with the receiver as all coordinates;  
   549     "return a new Point with the receiver as all coordinates;  
   546      often used to supply the same value in two dimensions, as with 
   550      often used to supply the same value in two dimensions, as with 
   547      symmetrical gridding or scaling."
   551      symmetrical gridding or scaling."
   548 
   552 
   860 ! !
   864 ! !
   861 
   865 
   862 !Number class methodsFor:'documentation'!
   866 !Number class methodsFor:'documentation'!
   863 
   867 
   864 version
   868 version
   865     ^ '$Header: /cvs/stx/stx/libbasic/Number.st,v 1.79 2002-11-26 11:45:01 cg Exp $'
   869     ^ '$Header: /cvs/stx/stx/libbasic/Number.st,v 1.80 2003-04-21 14:29:50 martin Exp $'
   866 ! !
   870 ! !