I believe I should type less if it's possible. Any unnecessary keystroke takes a bit a time. In the context of objective-C, my question is:
Can I type this
[UIColor colorWithRed:0 green:0 blue:0 alpha:0.15]; [UIColor colorWithRed:0.45 green:0.45 blue:0.45 alpha:0.15]; or do I have to use the f suffix
[UIColor colorWithRed:0.0f green:0.0f blue:0.0f alpha:0.15f]; [UIColor colorWithRed:0.45f green:0.45f blue:0.45f alpha:0.15f]; 1) why does it work even without "f"?
2) If I need to write f, do I still have an exception for "0", that means if it's zero, is it still ok without "f"?