Closed BtEtta closed 2 years ago
https://projectpokemon.org/home/forums/topic/48524-cp-height-weight-calculations/
.NET Framework's float calculations do not match the results stored in the data; the framework doesn't read/write the value correctly.
It calculates closer on the NET6 build, but still isn't exact; however, it's within the legality check's tolerances (off by 3 lowest bits max).
NET6:
obj.HeightAbsolute.ToString("F8") = "100.86275482"
obj.CalcHeightAbsolute.ToString("F8") = "100.86273956"
NET4.6:
obj.HeightAbsolute.ToString("F8") = "100.86280000"
obj.CalcHeightAbsolute.ToString("F8") = "100.86270000"
Emulating the Switch's floating point calculations & representations would be required for accurate calculations, but that has not been implemented (even 3 years later). No estimate of if/when accuracy will be available, hence the current behavior as-is.
Ha, I've figured something out ;)
Describe the problem Sometimes when viewing a pokémon the quicksave area will show as invalid even though there is no invalid mark in the box viewer
To Reproduce
Expected behavior Quicksave box should show as valid in all above circumstances.
Screenshots
712 - Bergmite - 1417C0AEC90C.zip 712 - Bergmite - D121164E98F1.zip