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