note 14093 added to language.types.type-juggling.php
| From: | noIdea at mailbox dot sk | Date: | Tue, 17 Jul 2001 07:37:33 +0000 |
| Subject: | note 14093 added to language.types.type-juggling.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15468@lists.php.net to get a copy of this message | ||
If I have odbc_result as Float point number, after assignment to some variable, it's always
converted to INTEGER. Why ? (settype does not help me.) How can I sum an odbc results (in cycle) ?
Example:
echo odbc_result($res, 'fp column');
$a = odbc_result($res, 'fp column');
echo "<BR>" . $a;
Output:
55.25
55
http://www.php.net/manual/en/language.types.type-juggling.php