I'm trying to print an int using the F# interactive console.
let x = sprintf "%d", 3
printf x
gives:
stdin(12,8): error FS0001: The type '(int -> string) * System.Numerics.BigIntege r' is not compatible with the type 'Printf.TextWriterFormat<'a>'
What am i doing wrong?
try
let x = sprintf "%d" 3
printf "%s" x
because the way you wrote it x is tuple of a function and a number
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With