Double Functions?? Is there any??

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
ITDemo
Posts: 20
Joined: Sat Nov 17, 2007 8:08 am

Double Functions?? Is there any??

Post by ITDemo »

Hey guys!

You know the way with strings in c you can use functions such as:
http://www.edcc.edu/faculty/paul.bladek/c_string_functions.htm

well is there any equivilant to this but for doubles?
I am wondering because I am working on a number pad OSK. Top Secret! :D

Well I want the output to be a double.
One way that I could do it if there is no double functions is by getting their input as a char array and then converting it to a double. Is that easy?

Thanks!
ITDemo
psPea
Posts: 60
Joined: Sat Sep 01, 2007 12:51 pm

Post by psPea »

That's pretty weird...
...ohhh
you mean the decimal representation of doubles being manipulated like c strings.

check out sscanf and sprintf
ITDemo
Posts: 20
Joined: Sat Nov 17, 2007 8:08 am

Post by ITDemo »

Thanks for the reply I will look at them.
Post Reply