Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
category:
|
||||
- Text processing
|
||||
- Simple
|
||||
note: Basic language learning
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
StringJoin[ToString /@ PadLeft[Characters[ToString[ 7.125]], 9]]
|
||||
->"00007.125"
|
||||
StringTake["000000" <> ToString[7.125], -9]
|
||||
00007.125
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ REBOL [
|
|||
URL: http://rosettacode.org/wiki/Formatted_Numeric_Output
|
||||
]
|
||||
|
||||
; REBOL has no built-in facilities for printing pictured
|
||||
; output. However, it's not too hard to cook something up using the
|
||||
; REBOL has no built-in facilities for printing pictured output.
|
||||
; However, it's not too hard to cook something up using the
|
||||
; string manipulation facilities.
|
||||
|
||||
zeropad: func [
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
(load "srfi-54.scm")
|
||||
(load "srfi-54.scm") ;; Don't ask.
|
||||
|
||||
(define x 295643087.65432)
|
||||
|
||||
(dotimes (i 4)
|
||||
(print (cat x 25 3.0 #\0 (list #\, (- 4 i)))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue