You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great it seems that the floating point behavior on Win32_64 is different to all other machines and architectures (yep - even Win32). This could be due to a different C runtime which provides snprintf which is used by formattedWrite in std.format.
If someone has a 64-bit Windows machine, it would be great to know what the following yields:
@wilzbach why not just add in a temporary patch which does the writelns in the unittests, then check the auto-tester's console output? Or include the formatted string in the assert error message?
Great it seems that the floating point behavior on Win32_64 is different to all other machines and architectures (yep - even Win32). This could be due to a different C runtime which provides snprintf which is used by formattedWrite in std.format.
If someone has a 64-bit Windows machine, it would be great to know what the following yields:
Meanwhile snprintf is removed for %g (at least for double and float). Unfortunately this is exactly the gap between %e-like and %f-like output, which may still differ between different computers. The reason for this is the way D handles floating point math (internal promotion to real) and the fact, that floating point math might differ slightly, depending on the way the calculations are optimized by the compiler. To avoid this, a software floating point unit with predictable results would be needed, IMHO an overkill. See #7836 for more on this.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The entire
jsonmodule seems to require a bit of love - though I am still hoping for std.data.json