I want to print a % sign using F#'s printfn function. After googling the format syntax, this should do the trick: printfn "%%"
. Apparently not...
F# interactive output:
> printfn "%%";;
%%
val it : unit = ()
Weird...
I'm using F#3.1 and .NET 4.5, the F# interactive session uses .NET 4.0. Same thing.
For reference: printfn "%"
doesn't compile (missing format specifier) and printfn "%s" "%"
is my current workaround...
Update:
When I change the target F# runtime from 3.1 to 3.0, it works. Is this a bug in the 3.1 runtime?