Is this an F# structured printf bug?

Posted by ControlFlow on Stack Overflow See other posts from Stack Overflow or by ControlFlow
Published on 2010-05-23T12:33:09Z Indexed on 2010/05/23 12:40 UTC
Read the original article Hit count: 216

Filed under:
|
|
|

Code:

printfn "%10s"  "abc"
printfn "%-10s" "abc"
printfn "%10d"   123
printfn "%-10d"  123
printfn "%10c"   'a'
printfn "%-10c"  'a'

Output:

       abc
abc
       123
123
a
a

So right aligning %c does not work as I expect...

F# 2.0 build 4.0.30319.1

© Stack Overflow or respective owner

Related posts about .NET

Related posts about F#