| | |
convert integer number to float number
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Can you give an example of what you are actually trying to acheive, PHP doesn't work with datatypes in the same way as many other scripting/programming languages.
Read the last paragraph on http://phpbuilder.com/manual/en/lang...pes.string.php
Read the last paragraph on http://phpbuilder.com/manual/en/lang...pes.string.php
Just store the numbers with the decimal value, if they are in a MySQL database there is a DECIMAL datatype for this, in MSSQL there is a CURRENCY one. If the values are hard-coded into the scripts, just add .00 to the end of them.
If I am missing the point please provide a code example as you are giving little to go by on what you want.
If I am missing the point please provide a code example as you are giving little to go by on what you want.
![]() |
Similar Threads
- string to float (C)
- void pointers (C++)
- Convert User Supplied Int to App Generated (Java)
- Please help (C++)
- Need Help - Python Question (Python)
- Problem while Type Casting (C++)
- Newbie question (C)
- ValueError - Not Working (Python)
- I lack focus... (Java)
- Pointers (C++)
Other Threads in the PHP Forum
- Previous Thread: convert indian rupees to words
- Next Thread: Error in uploading file via ftp server
| Thread Tools | Search this Thread |
action address advanced ajax apache api array auto basics beginner broken cakephp class classes cms code codingproblem combobox cron curl database date datepart destroy domain dynamic email error errorlog file folder form format forms function functions google head href htaccess html image include includingmysecondfileinthechain interactive ip javascript job joomla js limit link load login malfunctioning masterthesis menu multiple mysql nodes oop outofmemmory paging password paypal pdf php popup problem procedure query ram random reference script search server sessions smarty source space sql stored syntax system table traffic tutorial unicode unset up-to-date upload url validation variable video web webapplications websitecontactform youtube





