1
0
mirror of https://github.com/robertkrimen/otto synced 2025-10-12 20:27:30 +08:00
Commit Graph

23 Commits

Author SHA1 Message Date
HuKai
2b00d85b5e
feat: add math function (#485)
Add some ES6 math functions.
2023-02-23 16:13:49 +00:00
Steven Hartland
026a1d9a9c
chore: lint and naming refactor (#475)
Enable more linters, address the issues and do a major naming refactor
to use golang lower camelCase identifiers for types, functions, methods
and variable names.

Also: 
* Clean up inline generation so it doesn't rely on temporary variables.
* Remove unused functions generated by inline.pl.
2022-12-04 21:49:38 +00:00
deoxxa
fd1eddd0f9 add support for an external Math.random() provider 2016-02-18 22:08:25 +11:00
Robert Krimen
709a0aa7ff Value.string(), .float64(), .bool(), etc. 2014-06-06 21:29:40 -07:00
Robert Krimen
302b2f0cbf Fix Math.pow(-1, +Infinity) => NaN 2014-01-25 10:52:23 -08:00
Robert Krimen
4ebf6416d0 Fix Uint32 Array/String indexing
Also, a bunch of toValue_* streamlining
And maybe a few miscellaneous tweaks
2013-06-22 15:49:22 +02:00
Robert Krimen
896c393235 Add Math.abs 2013-03-17 22:17:21 -07:00
Robert Krimen
252e132594 Add Math.round 2013-02-27 15:50:52 -08:00
Robert Krimen
5baaa111e1 Add Math.sqrt 2013-02-27 15:33:00 -08:00
Robert Krimen
ea55b5b655 Add Math.tan 2013-02-27 15:11:48 -08:00
Robert Krimen
d24dc0eba3 Add Math.sin 2013-02-27 15:08:53 -08:00
Robert Krimen
fdcc597591 Add Math.log 2013-02-27 15:03:24 -08:00
Robert Krimen
614b345e7a Add Math.cos 2013-02-23 13:57:39 -08:00
Robert Krimen
7cf2fbb996 Add Math.atan2 2013-02-22 20:25:52 -08:00
Robert Krimen
738d76671b Add Math.atan 2013-02-22 20:07:45 -08:00
Robert Krimen
0b44f24f33 Add Math.asin 2013-02-22 20:04:47 -08:00
Robert Krimen
db71564bb4 Add Math.acos 2013-02-22 20:01:43 -08:00
Robert Krimen
b364451afe Fix and tests for Math.pow 2013-02-22 19:57:48 -08:00
Robert Krimen
b53c800965 Shuffle builtinMath_* 2013-02-22 19:43:13 -08:00
Robert Krimen
4dc7948e1c Streamline Math.ceil 2013-02-22 19:39:40 -08:00
Robert Krimen
47659bc0b3 Streamline Math.floor 2013-02-22 19:38:04 -08:00
Robert Krimen
44f53fe29a Add Math.exp 2013-02-22 19:36:11 -08:00
Robert Krimen
ec902a6452 Split builtin.go out to builtin_*.go 2013-02-20 15:58:45 -08:00