I'm trying to represent a number such as 1.45E-15 in C... How do i do this... I know there's pow() & exp() function but i don't think they are useful here...
SonxQ7
0
Light Poster
Recommended Answers
Jump to PostWhat do you mean 'represent'
double myVar = 1.45E-15;
should be fine.
Jump to PostI'm trying to represent a number such as 1.45E-15 in C... How do i do this... I know there's pow() & exp() function but i don't think they are useful here...
Do you ask of how to convert 1.45E-15 in its binary IEEE 754(1987) floating point representation? For example, if …
All 6 Replies
Salem
5,138
Posting Sage
tesuji
135
Master Poster
SonxQ7
0
Light Poster
jephthah
1,888
Posting Maven
SonxQ7
0
Light Poster
jephthah
1,888
Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.