Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

atoi with ints and doubles

Tags:

c++

int

double

atoi

Can I use atoi to convert a text input to a dialog box to a double?

I need to do a calculation on several double values that have been input using a dialog box. I only know of 'atoi' but is this for integers only?

like image 933
CaptainProg Avatar asked Mar 20 '26 16:03

CaptainProg


1 Answers

Similar to atoi() there is double atof ( const char * str ) that you can use Reference

like image 72
anijhaw Avatar answered Mar 23 '26 06:03

anijhaw



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!