ConnorSkees
9bbdf762ce
clippy
2020-03-18 20:11:14 -04:00
ConnorSkees
0fe97993f4
Properly handle trailing zeroes
...
This fixes an edge case in which there were trailing zeros that resulted
from the decimal having a non-zero part outside the precision range.
E.g. if precision were 10, `0.00000000000000000001` would be printed as `0.0000000000`.
This issue occured often when doing unit conversions between cm and in
(and similarly between dpcm and dpi).
2020-03-18 10:34:17 -04:00
ConnorSkees
b3b5163113
Implement unit conversions in numeric addition
2020-03-18 10:08:40 -04:00
ConnorSkees
d560f13289
Refactor how numbers are printed
2020-03-17 12:47:27 -04:00
ConnorSkees
09e4537e78
Proper error in str-slice when passed float
2020-02-16 18:39:27 -05:00
ConnorSkees
3512873363
Properly print negative decimals
2020-02-16 15:30:31 -05:00
ConnorSkees
1995b5ec6e
Error messages in builtins
2020-02-16 11:59:04 -05:00
ConnorSkees
d082583917
Handle negative numbers in str-slice()
2020-02-15 08:51:00 -05:00
ConnorSkees
c16d6fed4e
clippy
2020-02-14 18:28:09 -05:00
ConnorSkees
f7351e1458
Implement builtin function abs()
2020-02-14 12:30:48 -05:00
ConnorSkees
65c5c209f3
Implement Rem and RemAssign for Number
2020-02-14 09:44:46 -05:00
ConnorSkees
6427a7ab81
Implement builtin function adjust-hue
2020-02-14 08:15:19 -05:00
ConnorSkees
4c70b84ed7
Calls to undefined functions should be treated as idents
2020-02-09 20:26:14 -05:00
ConnorSkees
e37179cfd7
Properly handle precision
2020-02-09 20:00:35 -05:00
ConnorSkees
40e1e554c7
Implement builtin functions ceil()
and floor()
2020-02-09 16:14:24 -05:00
ConnorSkees
1269c9f662
Initial implementation of invert()
(no support for weight
argument)
2020-02-09 13:31:58 -05:00
ConnorSkees
8638e2f251
Implement builtin functions hue()
, saturation()
, and lightness()
2020-02-09 12:18:41 -05:00
ConnorSkees
5cab99cd6e
Implement hsl()
and hsla()
functions
2020-02-09 03:13:31 -05:00
ConnorSkees
22670a7e4b
Implement builtin function str-length
2020-02-08 20:38:37 -05:00
ConnorSkees
6c8dd6de93
rustfmt
2020-02-08 20:20:03 -05:00
ConnorSkees
c75e5cc553
Properly parse floating point numbers and rgba()
2020-02-08 20:07:20 -05:00
ConnorSkees
bf98382b0b
Improve alpha/opacity function tests
2020-02-08 18:51:29 -05:00
ConnorSkees
44d257494a
Properly print decimal numbers
2020-02-08 18:43:18 -05:00