channa123#
Newbie level 1
- Joined
- Sep 9, 2014
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 5
I used below code to cast double to integer.But it give me an error as invalid expression in mikroc pro
intpart is a double variable
intpart is a double variable
Code:
int int_prt = (int)floor(intpart);
Last edited by a moderator: