Browse thread
precision not working properly for strings in Printf?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Quôc_Peyrot <chojin@l...> |
| Subject: | precision not working properly for strings in Printf? |
It seems that the precision field doesn't work properly with the "s" type in Printf.printf: # Printf.printf "%.2s" "qwerty";; qwerty- : unit = () This should print "qw" -- Best Regards, Quôc