fable-compiler / fable-compiler.github.io

Fable web site
https://fable.io
23 stars 63 forks source link

Update compatibility.md... #171

Closed GordonBGood closed 1 year ago

GordonBGood commented 1 year ago

The note that there is a small difference in the use of sprint, sprintf, ToString to output in hexadecimal format as to the Fable version outputting a negative size and the magnitude as compared to DotNet just outputting the binary format seems to no longer be true with Fable version 4.13, as shown by the following code:

let test0 = sprintf "%X" -10
let test1 = sprintf "%X" -10L
printfn "%s, %s" test0 test1

which outputs the following:

FFFFFFF6, FFFFFFFFFFFFFFF6

without a negative sign to be seen...

MangelMaxime commented 1 year ago

Thank you