|
|
| Subject: | XploRe: Learning Guide |
| See XploRe: |
| Quantlet: | iofmt03 | |
| Description: | Format numeric as strings. | |
| Download: | iofmt03.xpl |
;
fmt = "Number : %10.3f"
i = 1:3
str = string (fmt, i)
str
;
string ("%8.5g", pi)
string ("%1.0f", pi)
string ("%22.20f", pi)
;
string ("%10.5f and %10.5g and %10.5e", pi, pi, pi)
;
x=(1:4)~(2:5)
write(x,"mydata.dat","r","%2.0f")
| Subject: | XploRe: Learning Guide |
| See XploRe: |