1
0
forked from Mirror/wren
Files
wren/test/core/number/exp.wren
underscorediscovery 433fbc4019 core; num; add exp & log2
I've had a couple use cases in time that the code is significantly clearer with these, and makes porting less error prone
2020-07-10 19:38:45 -07:00

4 lines
163 B
Plaintext

System.print(5.exp) // expect: 148.41315910258
System.print(10.exp) // expect: 22026.465794807
System.print((-1).exp) // expect: 0.36787944117144