Sorry for this newby question, but is the number PI defined in Qt??
If it isnt, in which library can I find a declaration for the number PI?
Sorry for this newby question, but is the number PI defined in Qt??
If it isnt, in which library can I find a declaration for the number PI?
<math>, <math.h>
Asking the same thing in two places is bad form.
See http://www.qtcentre.org/threads/4090...t-qmath.h-quot
maybe the difference is (i haven't use qmath.h) qmath.h was developed using OOP or Qt "primitive" types (for example if a function of math uses char* the equivalent in qmath.h uses QString wich is better than char*...), but as i told you before, i haven't used qmath.h and almost math.h
qmath uses Qt data types and is sensitive to certain Qt settings.
Bookmarks