mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-12 06:38:45 +01:00
I've had a couple use cases in time that the code is significantly clearer with these, and makes porting less error prone
5 lines
178 B
Plaintext
5 lines
178 B
Plaintext
System.print(1024.log2) // expect: 10
|
|
System.print(2048.log2) // expect: 11
|
|
System.print(100.log2) // expect: 6.6438561897747
|
|
System.print((-1).log2) // expect: nan
|