Number.st
changeset 23047 9aee14ae3d22
parent 23046 d566cd96c3e3
child 23127 399ea1a6c384
--- a/Number.st	Fri Jun 01 13:09:46 2018 +0200
+++ b/Number.st	Sun Jun 03 09:16:11 2018 +0200
@@ -594,7 +594,6 @@
     "Modified (comment): / 08-06-2017 / 13:58:36 / mawalch"
 ! !
 
-
 !Number class methodsFor:'constants'!
 
 e
@@ -838,7 +837,6 @@
     "
 ! !
 
-
 !Number class methodsFor:'private'!
 
 readMantissaAndScaleFrom:aStream radix:radix
@@ -935,7 +933,6 @@
     ^ self == Number
 ! !
 
-
 !Number methodsFor:'Compatibility-Squeak'!
 
 asSmallAngleDegrees
@@ -1094,7 +1091,6 @@
     "Modified: / 25-07-2017 / 15:58:46 / cg"
 ! !
 
-
 !Number methodsFor:'coercing & converting'!
 
 i
@@ -1999,7 +1995,19 @@
 !
 
 printStringFormat:formatString
-    ^ self printfPrintString:formatString
+    "Return a printed representation of the receiver as specified by formatString,
+     which is defined by PrintfScanf."
+
+    ^ PrintfScanf printf:formatString argument:self.
+    "/ ^ self printfPrintString:formatString
+
+    "
+     1.2345 printStringFormat:'%4.2f' -> '1.23'
+     123 printStringFormat:'%4d' -> ' 123'
+     123 printStringFormat:'%5.2f' -> '123.0'
+    "
+
+    "Modified (comment): / 03-06-2018 / 09:15:01 / Claus Gittinger"
 !
 
 printStringRadix:base
@@ -3450,7 +3458,6 @@
     "Modified: / 5.11.2001 / 17:54:22 / cg"
 ! !
 
-
 !Number class methodsFor:'documentation'!
 
 version