Noman Yousaf
Full Member level 4
- Joined
- Nov 19, 2003
- Messages
- 208
- Helped
- 3
- Reputation
- 6
- Reaction score
- 2
- Trophy points
- 1,298
- Location
- Lahore Pakistan
- Activity points
- 1,763
hi
i want to perform some trigonometric functions in mikroC like get the value of sin90, cos30 etc.
i wrote this code but when i run it and watch RAM, values are not correct.
even when i do it with float, incorrect values occur.
please help
i want to perform some trigonometric functions in mikroC like get the value of sin90, cos30 etc.
i wrote this code but when i run it and watch RAM, values are not correct.
even when i do it with float, incorrect values occur.
please help
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 long val3; void calculate (void) { val3=sin(90); } void main() { while(1) { calculate(); } }
Last edited by a moderator: