Floats, Strings & Mysql
when getting stuff from mysql you can only get it as string... Go figure
anyways... there is a str_to_num ... i need something like str_to_float... is there something like that? |
Quote:
|
Look at the includes for 0.20 DBI, you can use it like this:
new int = dbi_result(res, "field") new Float:fl = 0.0 dbi_result(res, "field", fl) |
yes, but i don't got that yet, now do i BAIL
|
I guess not :) I was saying it so you would know that it will exist in the future
Code:
/* turtle */ |
Quote:
|
Yea, I still cant get int's correctly with this new module :/
but noone listens to me :P |
| All times are GMT -4. The time now is 14:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.