Hi
So a float is considered larger than an int? I had thought seeing as they are both 32-bit that would not be the case.
TIA.
About Question enthuware.ocajp.i.v8.2.1277 :
Moderator: admin
-
- Posts: 125
- Joined: Thu Jul 05, 2018 6:44 pm
- Contact:
-
- Site Admin
- Posts: 10058
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1277 :
Not in terms of size but in terms of range.
If you like our products and services, please help us by posting your review here.
-
- Posts: 21
- Joined: Mon Nov 20, 2017 8:00 am
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1277 :
Why 4+1.0f doesn't print 5.0f ?
-
- Site Admin
- Posts: 10058
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.1277 :
The string printed by the print method is actually generated using Float's toString. It doesn't append the letter f. You may go through the description of this method to see how exactly it generates the string.
If you like our products and services, please help us by posting your review here.
-
- Posts: 1
- Joined: Tue Oct 30, 2018 4:10 am
- Contact:
Who is online
Users browsing this forum: No registered users and 39 guests