Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
floating in objective c
//gcc 4.8.4 #import <Foundation/Foundation.h> void main() { // Single precision floating-point float aFloat = -21.09f; NSLog(@"%f", aFloat); NSLog(@"%8.2f", aFloat); // Double precision floating-point double aDouble = -21.09; NSLog(@"%8.2f", aDouble); NSLog(@"%e", aDouble); // Extended precision floating-point long double aLongDouble = -21.09e8L; NSLog(@"%Lf", aLongDouble); NSLog(@"%Le", aLongDouble); }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Ex Srting Methods
book
Simple Arithmetic Operations in Objective C
Author1
emp class
string
datatype
Interface implementation
Inheritance Example
NSMutableset(add/remove,Etraction,Intersect)
Please log in to post a comment.