Skip to content

Commit 3dfe899

Browse files
authored
Update compatibility.md...
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 ```fable 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...
1 parent f2c8d6e commit 3dfe899

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

docs/docs/javascript/compatibility.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,3 @@ The resulting printed list of pseudo-random numbers does not work in Fable:
229229

230230
* When accurate low-order bit arithmetic is needed and overflow can result in numbers larger than 2^53 use `int64`, `uint64`, which use exact 64 bits, instead of `int32`, `uint32`.
231231
* Alternately, truncate all arithmetic with `>>> 0` or `>>> 0u` as appropriate before numbers can get larger than 2^53: `let rng (s:int32) = 10001*s + 12345 >>> 0`
232-
233-
### Printing
234-
235-
One small change from .NET in `printf`, `sprintf`, `ToString`. Negative signed integers are printed in hexadecimal format as sign + magnitude, in .NET they are printed as two's complement bit patterns.

0 commit comments

Comments
 (0)