php convert floating point to long (convert to string to pass to a xml function)


venom361
HOME ยป Coding

PHP converts a large number to floating point which I need in "long" format to pass to a soap xml api.


((round(time()/(60*15))*60*15)+(30*60))*1000

This gives the result:


1.28E+12

Whereas, what I need is:


"1280495700000"

in order to pass to the api


Related to : php convert floating point to long (convert to string to pass to a xml function)
php convert floating point to long (convert to string to pass to a xml function)
Coding

PHP converts a large number to floating point which I need in "long" format to pass to a soap xml api.


((round(time()/(60*15))*60*15)+(30*60))*1000

This gives the result:


1.28E+12

Whereas, what I need is:


"1280495700000"

in order to pass to the api


How do i convert a floating point string to an int in c#
Coding

I have a string:


string test = "19,95";


and I wan't to convert it to an int.


I use:


int num = Convert.Int32(test);


However it throws an FormatException. And tells me that the string is not a proper string for conversion.


My guess is that it has to do with the decimal seperator.


How do i work around this?


Convert a Floating Point Number to a String
Coding

Hello, is there any way to go about converting a floating point number to a string. I could probably write a function to do it myself, since i know the precision will always be up to 3 decimal places. 1.0 to 0.001. Just wondering if there is an easier way to do it.
convert a floating point number to string
Coding

Is there any function to convert a floating point number(e.g.12.12)to a string??


HD Wallpapers
3D
3D Abstract
City
Celebrities
Indian Celebrities
Cars
Travel
Girls
Animals Birds
Movies
Sports
Black White
Nature
Planes
Anime
Food Drink
Dreamy Fantasy
Architecture
Games
Space
Holidays
Flowers
Love
Artistic
Baby
Beach
Bikes Motorcycles
Macro
Computers
Vector
Funny
Army
Textures
Brands
Misc
Music
Other
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .