* Menu
[[About:self:AboutPage.txt]] | [[Profile:file/southly/]] | [[まとめ:self:1163859357.txt]] | [[オリジナル:http://ninjinix.x0.com/rn/]] | [[xyzzy:lisp/]] | [[あんてな:listall]] | [[■:lisp]] | [[buzz:files/southly#buzz]]
- RandomNote について。
- xyzzy lisp : format ~W
- xyzzy lisp : format ~F
- xyzzy lisp : format ~G
- xyzzy lisp : format ~E
- xyzzy lisp : format ~S
- xyzzy lisp : format ~A
- Scrapbook : 全文検索エンジン Hyper Estraier on SAKURA Internet (hiyuzawa.jpn.org)
- 2006-11-15
- xyzzy : WSHでxyzzy起動
- Scrapbook : MCPP -- a portable C preprocessor with Validation Suite
- Scrapbook : シゴタノ! - 読み手の負担を最小化するメールの書き方
- Scrapbook : かぎしっぽツール - [物理のかぎしっぽ]
- Scrapbook : C++ Coding Standard
- Scrapbook : gonzui
page 14 - << : 0 : 1 : 2 : 3 : 4 : 5 : 6 : 7 : 8 : 9 : 10 : 11 : 12 : 13 : 14 : 15 : 16 : 17 : 18 : 19 : 20 : 21 : 22 : 23 : 24 : 25 : 26 : 27 : 28 : 29 : 30 : 31 : 32 : 33 : 34 : 35 : 36 : 37 : 38 : >>
* RandomNote について。
* xyzzy lisp : format ~W
- write形式で出力
- パラメータはなし
- Common Lispには":W"や"@W"や":@W"が存在しますがxyzzyにはありません
(format nil "~W" 'hoge) "hoge"
* xyzzy lisp : format ~F
- 実数を固定小数点表記で出力
- "@F" 常に符号を出力
- パラメータは最大5つ
- 幅
- 小数点以下部分の有効桁
- 小数点の位置をずらす
- 幅が足りず出力できないときに使う文字
- 空きを埋める文字
(format nil "~F" 123.45) "123.45" (format nil "~@F" 123.45) "+123.45" (format nil "~10F" 123.45) " 123.45" (format nil "~10,5F" 123.45) " 123.45000" (format nil "~10,5,2F" 123.45) "12345.00000" (format nil "~10,5,2,'#F" 123.45) "##########" (format nil "~10,,,,'$F" 123.45) "$$$$123.45"
* xyzzy lisp : format ~G
- 実数をその大きさに応じていい感じに出力
- "@G" 常に符号を出力
- パラメータは最大7つ
- 幅
- 小数点以下部分の有効桁
- 指数部分の桁
- 小数点の位置をずらす
- 幅が足りず出力できないときに使う文字
- 空きを埋める文字
- 指数マーカに使う文字
* xyzzy lisp : format ~E
- 実数を指数表記で出力
- "@E" 常に符号を出力
- パラメータは最大7つ
- 幅
- 小数点以下部分の有効桁
- 指数部分の桁
- 小数点の位置をずらす
- 幅が足りず出力できないときに使う文字
- 空きを埋める文字
- 指数マーカに使う文字
(format nil "~E" 123.45) "1.2345e+2" (format nil "~@E" 123.45) "+1.2345e+2" (format nil "~10E" 123.45) " 1.2345e+2" (format nil "~10,5E" 123.45) "1.23450e+2" (format nil "~10,5,2E" 123.45) "1.23450e+02" (format nil "~10,5,2,3E" 123.45) "123.450e+00" (format nil "~10,5,2,3,'%E" 123.45) "%%%%%%%%%%" (format nil "~15,,,,,'=@E" 123.45) "=====+1.2345e+2" (format nil "~15,,,,,,'D@E" 123.45) " +1.2345D+2"
* xyzzy lisp : format ~S
- prin1形式で出力
- ":S" nilの出力が()
- "@S" 右寄せ
- パラメータは最大4つ
- 最小幅
- 出力幅の変化量
- 埋める最小幅
- 空きを埋める文字
(format nil "~S" nil) "nil" (format nil "~:S" nil) "()" (format nil "~10S" 'hoge) "hoge " (format nil "~10@S" 'hoge) " hoge" (format nil "~10,5@S" 'hogehogehoge) " hogehogehoge" (format nil "~,,5,'$S" 'hoge) "hoge$$$$$"
* xyzzy lisp : format ~A
- princ形式で出力
- ":A" nilの出力が()
- "@A" 右寄せ
- パラメータは最大4つ
- 最小幅
- 出力幅の変化量
- 埋める最小幅
- 空きを埋める文字
(format nil "~A" nil) "nil" (format nil "~:A" nil) "()" (format nil "~10A" 'hoge) "hoge " (format nil "~10@A" 'hoge) " hoge" (format nil "~10,5@A" 'hogehogehoge) " hogehogehoge" (format nil "~,,5,'#A" 'hoge) "hoge#####"