| View previous topic :: View next topic |
| Author |
Message |
ITDemo
Joined: 17 Nov 2007 Posts: 20
|
Posted: Sat Jan 03, 2009 6:33 am Post subject: Double Functions?? Is there any?? |
|
|
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 |
|
| Back to top |
|
 |
psPea
Joined: 01 Sep 2007 Posts: 64
|
Posted: Sat Jan 03, 2009 8:40 am Post subject: |
|
|
That's pretty weird...
...ohhh
you mean the decimal representation of doubles being manipulated like c strings.
check out sscanf and sprintf |
|
| Back to top |
|
 |
ITDemo
Joined: 17 Nov 2007 Posts: 20
|
Posted: Sat Jan 03, 2009 11:20 pm Post subject: |
|
|
| Thanks for the reply I will look at them. |
|
| Back to top |
|
 |
|