Integer.st
changeset 15775 94bd832a355e
parent 15765 6edf4f55277d
child 15841 7c222b07168f
child 18105 3a3a3e0ac47f
equal deleted inserted replaced
15774:fb3f6b4726c8 15775:94bd832a355e
  3764     "Modified: / 20-01-1998 / 18:05:02 / stefan"
  3764     "Modified: / 20-01-1998 / 18:05:02 / stefan"
  3765     "Created: / 07-09-2001 / 13:51:33 / cg"
  3765     "Created: / 07-09-2001 / 13:51:33 / cg"
  3766     "Modified: / 02-08-2010 / 12:24:14 / cg"
  3766     "Modified: / 02-08-2010 / 12:24:14 / cg"
  3767 !
  3767 !
  3768 
  3768 
       
  3769 printOn:aStream base:baseInteger size:sz 
       
  3770     "print a string representation of the receiver in the specified
       
  3771      base. The string is padded on the left with fillCharacter to make
       
  3772      its size as specified in sz."
       
  3773 
       
  3774     self printOn:aStream base:baseInteger size:sz fill:$0
       
  3775 
       
  3776     "
       
  3777      1024 printOn:Transcript base:16 size:4
       
  3778      1024 printOn:Transcript base:2 size:16.
       
  3779      1024 printOn:Transcript base:16 size:8.
       
  3780     "
       
  3781 !
       
  3782 
  3769 printOn:aStream base:baseInteger size:sz fill:fillCharacter
  3783 printOn:aStream base:baseInteger size:sz fill:fillCharacter
  3770     "print a string representation of the receiver in the specified
  3784     "print a string representation of the receiver in the specified
  3771      base. The string is padded on the left with fillCharacter to make
  3785      base. The string is padded on the left with fillCharacter to make
  3772      its size as specified in sz."
  3786      its size as specified in sz."
  3773 
  3787 
  4995 ! !
  5009 ! !
  4996 
  5010 
  4997 !Integer class methodsFor:'documentation'!
  5011 !Integer class methodsFor:'documentation'!
  4998 
  5012 
  4999 version
  5013 version
  5000     ^ '$Header: /cvs/stx/stx/libbasic/Integer.st,v 1.286 2013-09-23 13:11:40 cg Exp $'
  5014     ^ '$Header: /cvs/stx/stx/libbasic/Integer.st,v 1.287 2013-09-30 10:44:21 cg Exp $'
  5001 !
  5015 !
  5002 
  5016 
  5003 version_CVS
  5017 version_CVS
  5004     ^ '$Header: /cvs/stx/stx/libbasic/Integer.st,v 1.286 2013-09-23 13:11:40 cg Exp $'
  5018     ^ '$Header: /cvs/stx/stx/libbasic/Integer.st,v 1.287 2013-09-30 10:44:21 cg Exp $'
  5005 ! !
  5019 ! !
  5006 
  5020 
  5007 
  5021 
  5008 Integer initialize!
  5022 Integer initialize!