ErnieParke wrote:
Hmmm… I can't find that block in Scratch 1.4. Where did you find it?
its in the 2.0 alpha
Offline
i think you should save 2.0 questions for when 2.0 actually comes out
Offline
777w wrote:
i think you should save 2.0 questions for when 2.0 actually comes out
Offline
CheeseMunchy wrote:
777w wrote:
i think you should save 2.0 questions for when 2.0 actually comes out
why?
wouldn't it be helpful for the scratch team if they were to see this to know what people find confusing and would need documentation?
Offline
veggieman001 wrote:
same thing as floor, it truncates/rounds down
So why do they have both then
Offline
RedRocker227 wrote:
veggieman001 wrote:
same thing as floor, it truncates/rounds down
So why do they have both then
My question exactly.
What does int mean?
In C and C++ and a couple other C languages, int means an integer.
Offline
Firedrake969 wrote:
RedRocker227 wrote:
veggieman001 wrote:
same thing as floor, it truncates/rounds down
So why do they have both then
My question exactly.
What does int mean?
In C and C++ and a couple other C languages, int means an integer.
In TI-Basic, it actually means the same as ipart(x), round down. Maybe its just a duplicate they forgot to remove?
Offline
RedRocker227 wrote:
veggieman001 wrote:
same thing as floor, it truncates/rounds down
So why do they have both then
i have no idea
Firedrake969 wrote:
RedRocker227 wrote:
veggieman001 wrote:
same thing as floor, it truncates/rounds down
So why do they have both then
My question exactly.
What does int mean?
In C and C++ and a couple other C languages, int means an integer.
yes, it means integer pretty universally
so what it does is casts a number into an integer via truncation (cutting off all the decimals, or rounding down)
it's equivalent to doing this in java:
int x = (int) 3.45209
Offline
veggieman001 wrote:
RedRocker227 wrote:
veggieman001 wrote:
same thing as floor, it truncates/rounds down
So why do they have both then
i have no idea
Firedrake969 wrote:
RedRocker227 wrote:
So why do they have both thenMy question exactly.
What does int mean?
In C and C++ and a couple other C languages, int means an integer.yes, it means integer pretty universally
so what it does is casts a number into an integer via truncation (cutting off all the decimals, or rounding down)
it's equivalent to doing this in java:
int x = (int) 3.45209
I don't speak Java.
So it's a duplicate block?
Offline
Firedrake969 wrote:
veggieman001 wrote:
RedRocker227 wrote:
So why do they have both theni have no idea
Firedrake969 wrote:
My question exactly.
What does int mean?
In C and C++ and a couple other C languages, int means an integer.yes, it means integer pretty universally
so what it does is casts a number into an integer via truncation (cutting off all the decimals, or rounding down)
it's equivalent to doing this in java:
int x = (int) 3.45209I don't speak Java.
So it's a duplicate block?
No. Round () rounds to the nearest whole number while this block rounds down. For example, ( int of (6.99) ) is the same as 6.
Last edited by ErnieParke (2012-09-29 14:38:45)
Offline
ErnieParke wrote:
Firedrake969 wrote:
veggieman001 wrote:
RedRocker227 wrote:
veggieman001 wrote:
same thing as floor, it truncates/rounds down
So why do they have both then
i have no idea
yes, it means integer pretty universally
so what it does is casts a number into an integer via truncation (cutting off all the decimals, or rounding down)
it's equivalent to doing this in java:
int x = (int) 3.45209I don't speak Java.
So it's a duplicate block?No. Round () rounds to the nearest whole number while this block rounds down. For example, ( int of (6.99) ) is the same as 7.
I meant floor.
Offline
Reopened by request.
Offline
ErnieParke wrote:
Firedrake969 wrote:
veggieman001 wrote:
RedRocker227 wrote:
veggieman001 wrote:
same thing as floor, it truncates/rounds down
So why do they have both then
i have no idea
yes, it means integer pretty universally
so what it does is casts a number into an integer via truncation (cutting off all the decimals, or rounding down)
it's equivalent to doing this in java:
int x = (int) 3.45209I don't speak Java.
So it's a duplicate block?No. Round () rounds to the nearest whole number while this block rounds down. For example, ( int of (6.99) ) is the same as 7.
i think you mean int of 6.99 is 6
Offline
veggieman001 wrote:
ErnieParke wrote:
Firedrake969 wrote:
I don't speak Java.
So it's a duplicate block?No. Round () rounds to the nearest whole number while this block rounds down. For example, ( int of (6.99) ) is the same as 7.
i think you mean int of 6.99 is 6
That was a typo. Thanks for catching it!
Offline
veggieman001 wrote:
CheeseMunchy wrote:
777w wrote:
i think you should save 2.0 questions for when 2.0 actually comes out
why?
wouldn't it be helpful for the scratch team if they were to see this to know what people find confusing and would need documentation?
oh yes okay that makes sense
Offline