Discuss Scratch

u950998
Scratcher
12 posts

How to input a Scientific notation

Is it possible to input a Scientific notation?
ask [Please tell me the distance between sun and earth?] and wait

Last edited by u950998 (Aug. 21, 2021 14:31:28)

awesome-llama
Scratcher
1000+ posts

How to input a Scientific notation

Scratch supports "E notation" in numbers, which is just scientific notation in a more computer-readable format.
E notation is structured with a number followed by the letter e, and the number given after that is the exponent.
For example, 3e4 is 3*10^4 = 3,000

To make use of this in Scratch, you can simply input numbers in the format of E notation, like I have shown below:
u950998
Scratcher
12 posts

How to input a Scientific notation

Thanks, but
say [1.23e5]

Last edited by u950998 (Aug. 21, 2021 15:13:27)

toonyreddyeh90909
Scratcher
4 posts

How to input a Scientific notation

tyexept
change [ v] by (3e4)
or
set [ v] to [3e4]

Powered by DjangoBB