|
Last change
on this file since 11 was 2, checked in by Dmitry A. Kuminov, 16 years ago |
|
Initially imported qt-all-opensource-src-4.5.1 from Trolltech.
|
|
File size:
342 bytes
|
| Line | |
|---|
| 1 | #include <math.h>
|
|---|
| 2 |
|
|---|
| 3 | int main(int argc, char **argv)
|
|---|
| 4 | {
|
|---|
| 5 | float c = ceilf(1.3f);
|
|---|
| 6 | float f = floorf(1.7f);
|
|---|
| 7 | float s = sinf(3.8);
|
|---|
| 8 | float t = cosf(7.3);
|
|---|
| 9 | float u = sqrtf(8.4);
|
|---|
| 10 | float l = logf(9.2);
|
|---|
| 11 |
|
|---|
| 12 | if (c == 1.0f && f == 2.0f && s == 3.0f && t == 4.0f && u == 5.0f && l == 6.0f)
|
|---|
| 13 | return 0;
|
|---|
| 14 | else
|
|---|
| 15 | return 1;
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.