Quote:
Originally Posted by fysiks
I'd probably recommend using integers. One for the major version and one for the minor version.
However, I don't see any reason to have the full file path to a .amxx file but even more-so why you would need that of a future version.
|
The idea was for a self updating plugin
I scaped the version usage tho, came up with a solution to overwriting the existing .amxx file even if it's being run by the server
Quote:
Originally Posted by Nextra
Floats are not precise enough and both 1.3 and 0.1 can not be accurately represented. By default the AMXX %f formatting will not round this small error away and will thus result in a 1.39999 being output (which is technically correct).
Your floatadd workaround does nothing, it is the %.1f formatting that "fixes" the issue. You can easily verify this using a small C program and printing the same numbers with something like %.12f so the numbers don't get rounded by the library.
|
since when does decimal selection round the float? shouldn't it still print 1.3 with %.1f of 1,39999?
__________________