We have answer of your question!

100% solved queries, no empty question


How do I represent extremely large or small numbers in C with a certain amount of significant figures. For example, if I want to do calculations on 1.54334E-34, how could I do this. Also, is this applicable to OpenCL code?

Question author User1876508 | Source



I don't know any OpenCL but 32-bit C floats will hold values in the range of +/- 3.4e +/- 38 (~7 digits), and doubles much more. If you want arbitrary precision arithmetic/math you may want to look into GMP or MPFR.

Answer author Kninnug

Tickanswer.com is providing the only single recommended solution of the question How to represent scientific notation in C under the categories i.e c , opencl , scientific-computing , scientific-notation , . Our team of experts filter the best solution for you.

Related Search Queries:

how to print scientific notation in c , scientific notation in c++ ,

You may also add your answer

Thanks for contributing an answer to Tick Answer!