Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

The error is because of int(a). SyntacticallySyntactically it is wrong. It should be (int)(a).

The error is because of int(a). Syntactically it is wrong. It should be (int)(a).

The error is because of int(a). Syntactically it is wrong. It should be (int)(a).

deleted 3 characters in body
Source Link
haccks
  • 106.6k
  • 28
  • 181
  • 274

Redefine your macro as:The error is because of int(a). Syntactically it is wrong. It should be (int)(a).

#define round(a) ((a-0.5)<(int)(a))?(int)(a):(int)(a+1) 

Redefine your macro as:

#define round(a) ((a-0.5)<(int)(a))?(int)(a):(int)(a+1) 

The error is because of int(a). Syntactically it is wrong. It should be (int)(a).

Post Undeleted by haccks
Post Deleted by haccks
Source Link
haccks
  • 106.6k
  • 28
  • 181
  • 274

Redefine your macro as:

#define round(a) ((a-0.5)<(int)(a))?(int)(a):(int)(a+1)