langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
|
|
@ -0,0 +1,16 @@
|
|||
/* NetRexx */
|
||||
|
||||
options replace format comments java crossref savelog symbols binary
|
||||
|
||||
import java.text.MessageFormat
|
||||
|
||||
sevenPointOneTwoFive = double 7.125
|
||||
|
||||
-- using NetRexx Built-In Functions (BIFs)
|
||||
say Rexx(sevenPointOneTwoFive).format(5, 3).changestr(' ', '0')
|
||||
|
||||
-- using Java library constructs
|
||||
System.out.printf('%09.3f\n', [Double(sevenPointOneTwoFive)])
|
||||
say MessageFormat.format('{0,number,#00000.###}', [Double(sevenPointOneTwoFive)])
|
||||
|
||||
return
|
||||
Loading…
Add table
Add a link
Reference in a new issue