|
Author
|
Message
|
|
Veteran Member
Join Date: Feb 2013
Location: Rromania
|

01-11-2015
, 17:38
float 1.3 + 0.1 = 1.399999
|
#1
|
Okay so what gives?
static const
PLUGIN_NAME[] = "xxxx",
PLUGIN_AUTHOR[] = "xxx",
PLUGIN_VERSION[] = "1.3"
new Temp[256];
formatex(Temp, 255, "addons/amxmodx/plugins/plugin%f.amxx",str_to_float(PLUGIN_VERSION)+0 .1);
and it results in a file named plugin1.399999.amxx
why? I want it to be 1.4
__________________
Meanwhile, in 2050:
Quote:
|
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
|
|
|
|
|
|