21 Commits

Author SHA1 Message Date
MALO
0804a9e25d
Use/allow U+2212 MINUS SIGN instead of U+002D HYPHEN MINUS everywhere (#2318) 2023-10-09 15:30:40 +02:00
Laurenz
305524d005 Update tests for type system changes 2023-09-11 14:42:43 +02:00
Laurenz
b8b0137504 Bytes type
- Moves `Bytes` from `util` to `eval` module
- Accepts bytes in `str` function for bytes -> str conversion
- Adds `bytes` function for str | array -> bytes conversion
- Adds `array` function for bytes -> array conversion
- Adds `len`, `at`, and `slice` methods for bytes
- Adds `encoding` parameter to `read` function
2023-08-04 15:46:46 +02:00
Jett Chen
c87f802cf6
add calc.exp, calc.ln (#1299)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2023-06-07 14:44:07 +02:00
Laurenz
08870d4a4c Clearer error messages for failed comparisons
Fixes #1231
2023-05-22 13:06:33 +02:00
Leedehai
84b9d9c990
Print the string that is not castable to number (#1207) 2023-05-19 14:54:44 +02:00
HarmoGlace
42b93b7b53
Add quo, trunc and fract calculation methods and rename mod to rem (#890) 2023-04-20 16:09:41 +02:00
HarmoGlace
1e934def56
Add gcd and lcm calculation methods (#789) 2023-04-19 16:18:31 +02:00
HarmoGlace
29b36d4876
Fix pow overflow (#784) 2023-04-13 21:08:54 +02:00
Laurenz
9025ecb2ee Better error spans in calc 2023-04-13 15:13:31 +02:00
HarmoGlace
e11bd2a193
Add factorial, permutation and binomial to calculation functions (#639) 2023-04-13 14:38:51 +02:00
Eric Biedert
c7db709da5
Allow treating ratios as floats (#681) 2023-04-11 14:13:01 +02:00
Laurenz
e77abf842d Make error messages a bit more consistent 2023-04-04 14:33:43 +02:00
HarmoGlace
4aa5e0a4a3
Make behavior of calculation functions consistent (#515) 2023-04-04 14:33:26 +02:00
Laurenz
e1ecb8cabe Simplify pow function 2023-04-01 23:31:23 +02:00
Laurenz
62f35602a8 New #[func] macro 2023-03-10 12:55:21 +01:00
Laurenz
0ef1b02ee0 Add calc constants 2023-01-30 21:29:03 +01:00
Martin Haug
0287b98ef3 Add calc module 2023-01-30 21:04:34 +01:00
Laurenz
38a0404050 Document underline, strikethrough, and overline 2022-12-20 18:20:19 +01:00
Laurenz
35b16e545b Document parameters in comment 2022-12-17 16:24:29 +01:00
Laurenz
0efe669278 Reorganize library and tests 2022-11-29 14:18:13 +01:00