forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Double Functions?? Is there any??

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
ITDemo



Joined: 17 Nov 2007
Posts: 20

PostPosted: Sat Jan 03, 2009 6:33 am    Post subject: Double Functions?? Is there any?? Reply with quote

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
View user's profile Send private message
psPea



Joined: 01 Sep 2007
Posts: 64

PostPosted: Sat Jan 03, 2009 8:40 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger MSN Messenger
ITDemo



Joined: 17 Nov 2007
Posts: 20

PostPosted: Sat Jan 03, 2009 11:20 pm    Post subject: Reply with quote

Thanks for the reply I will look at them.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group