% is for int
or long
, not float
or double
.
You can use fmod()
or fmodf()
from <math.h>
instead.
Better is <tgmath.h>
as suggested by the inventor of CGFloat.
More Related Contents:
- Difference between self.ivar and ivar?
- Understanding reference counting with Cocoa and Objective-C
- Detect the specific iPhone/iPod touch model [duplicate]
- How do I add a gradient to the text of a UILabel, but not the background?
- How to get the color of a pixel in an UIView?
- OAuth secrets in mobile apps
- Just two rounded corners? [duplicate]
- Keeping object on top of keyboard in the event of becomeFirstResponder or resignFirstResponder?
- Change UINavigationBar Height
- iPhone: Disable the “double-tap spacebar for .” shortcut?
- Changing UIImage color
- NSOperation on the iPhone
- ARC forbids Objective-C objects in structs or unions despite marking the file -fno-objc-arc
- UISlider with increments of 5
- Write UIImage along with metadata (EXIF, GPS, TIFF) in iPhone’s Photo library
- Easy way to disable a UITextField?
- Font size rendering inconsistencies on an iPhone
- Calculate distance between two place using latitude-longitude in gmap for iPhone [duplicate]
- How to get iPhone crash log from customers?
- Sorting NSString values as if NSInteger using NSSortDescriptor
- How to extract orientation information from videos?
- How to reset iPhone simulator
- How to display 2 lines of text for subtitle of MKAnnotation and change the image for the button on the right?
- How will I be able to remove [NSNull Null] objects from NSMutableArray?
- UITextField for Phone Number
- UIView with a Dashed line
- How can I get SecKeyRef from DER/PEM file
- NSPredicate endswith multiple files
- Annotate PDF within iPhone SDK
- Web site exhibits JavaScript error on iPad / iPhone under 3G but not under WiFi