Discuss Scratch

Talkie_fan
Scratcher
3 posts

Exponents

This is a basic calc for exponents.
10 to the power of ((log(base) * (exponent))

Last edited by Talkie_fan (May 4, 2026 18:51:24)

medians
Scratcher
1000+ posts

Exponents

The problem is that this kinda breaks if the base is negative.
oti_mr_Chicken
Scratcher
100+ posts

Exponents

Ok, that's looks good. Also, IS exponent multiplying a number by a fraction?

Please do not steal this, as this is actual coding by me for a fantasy console sampler

Last edited by oti_mr_Chicken (May 17, 2026 14:24:01)

medians
Scratcher
1000+ posts

Exponents

oti_mr_Chicken wrote:

Ok, that's looks good. Also, IS exponent multiplying a number by a fraction?

Please do not steal this, as this is actual coding by me for a fantasy console sampler
I mean, we cannot really steal it when there is like one line of code lol
Also, exponent is kinda like repeated multiplication

Powered by DjangoBB