omegastripes / VBA-JSON-parser

Backus-Naur Form JSON Parser based on RegEx for VBA
GNU General Public License v3.0
108 stars 44 forks source link

Different computer settings may cause issues with the MID calculation. How can this be resolved? #36

Closed haowuge closed 2 months ago

haowuge commented 2 months ago

Hello developer, I encountered an issue while using VBA-JSON-parser. On one of my computers, during certain calculations, for example, 1/2 is displayed as .5 (without 0). This leads to errors when using the MID function for data processing, causing the final result to be off by approximately 1000 times the actual value. How can we avoid this situation, given that it involves many users and it's not convenient to modify the settings on their computers?

https://github.com/omegastripes/VBA-JSON-parser/blob/0199cc8e458302619e0f3338f260f2e3cefeef04/JSON.bas#L74

https://github.com/omegastripes/VBA-JSON-parser/blob/0199cc8e458302619e0f3338f260f2e3cefeef04/JSON.bas#L174

1-2

The example image was sent incorrectly, please send it again: 2-2

thank!