joseLuís
1065d024dd
fix spelling: Celcius → Celsius
2021-01-14 17:12:11 +01:00
Kasper
72037bfd15
Added unit of mass stone
2020-11-26 18:28:34 +01:00
Kasper
25d151465e
Fix cargo doc links
2020-11-26 02:04:35 +01:00
Kasper
ef97410fe5
Updated decimal dependency to decimal_fixes_mirror
...
Fixed panics in Rust 1.48.0
2020-11-26 01:24:51 +01:00
Kasper
bf30ffa00b
Fixed dividing a unit by NoUnit resulting in NoUnit
2020-11-26 00:10:04 +01:00
Kasper
269d3cc70f
Added support for Power * Time and Energy / Time
2020-11-22 01:52:32 +01:00
Kasper
850e2cede5
Multiplication and division support for electric units
2020-11-22 00:28:12 +01:00
Kasper
3a0518e82d
Made multiply function more DRY
2020-11-21 20:46:55 +01:00
Kasper
6553c50d1d
Added units of voltage
2020-11-21 02:47:31 +01:00
Kasper
f03850f006
Added more keywords for units of current and resistance
2020-11-21 02:47:03 +01:00
Kasper
50cac79d7a
Fixed lexing of "µs"
2020-11-21 02:10:20 +01:00
Kasper
5da0c5e3d7
Added units of resistance (ohm)
2020-11-21 01:22:25 +01:00
Kasper
5371f8d5ac
Added units of electric current
2020-11-20 20:19:31 +01:00
Kasper
8378364dff
Added tests for units of frequency
2020-11-13 18:18:25 +01:00
Kasper
802ad3d88f
Added units of frequency
2020-11-13 18:13:56 +01:00
Kasper
5f85d32f65
v1.0.2
2020-10-12 20:45:48 +02:00
Ethan Wu
d24d4af969
Fix bugs caused by typos
...
- Fix spelling of *quarter* in lexer and assign `Unit::Quarter` correctly
- Use division instead of multiplication when dividing a number by another
number of the same unit
2020-10-12 00:19:19 -07:00
Kasper
a5aa85c1c0
Documented most things, small code improvements
2020-08-20 21:59:44 +02:00
Kasper
56ea8380b7
Code improvements, added a bunch of doc comments
...
There are technically no breaking changes because everything was broken in the first place
2020-08-20 17:11:19 +02:00
Kasper
f082939d5a
Multiplication and division with speed and time ( 1km/2s*5s )
2020-01-18 21:11:11 +01:00
Kasper
025b1b9169
Pow with units
2020-01-18 20:33:57 +01:00
Kasper
1aca6fd68f
Multiplication and division with units
2020-01-18 19:34:30 +01:00
Kasper
fda6550d1a
Fixed ambiguity by renaming UnitType::NoUnit to NoUnitType
2020-01-14 17:30:46 +01:00
Kasper
801fbcf974
Fixed adding/subtracting with temperatures of the same type
2020-01-14 17:25:05 +01:00
Kasper
81b987e14f
Fixed unit support for modulo
2020-01-14 14:59:18 +01:00
Kasper
1e83f50fbd
Moved * / % and ^ to units.rs, added support for 1km/1km
2020-01-14 14:41:53 +01:00
Kasper
0b592ac5f1
Renamed information to digital storage
2020-01-14 00:31:08 +01:00
Kasper
eb8c1a0a37
Moved addition/subtraction to units.rs
2020-01-13 23:38:31 +01:00
Kasper
388825f9ac
Lexing of keywords now uses is_ascii_alphabetic instead of is_alphabetic
2020-01-13 15:50:54 +01:00
Kasper
5360318bfc
Added unit of pressure, improved lexer "post-fix" loop
...
Previously the lexer's post-fix loop was really weird, incrementing in the middle of the function. No more
2020-01-12 22:57:49 +01:00
Kasper
8a232f72f0
Added newton meter
2020-01-11 04:50:31 +01:00
Kasper
539568c5b5
Added unit of power
2020-01-11 04:46:43 +01:00
Kasper
0758611dfb
Added lexing of energy and speed units
2020-01-11 04:31:30 +01:00
Kasper
5385c3ac56
Slightly changed values for calories, kilocalories and BTU
...
Changed them to be of the IT type
2020-01-10 21:38:55 +01:00
Kasper
35043932d5
Fixes/additions for lexing units
2020-01-10 17:45:06 +01:00
Kasper
e4a9996880
Added units of energy, speed, information (bytes etc)
2020-01-10 17:26:50 +01:00
Kasper
fbbb895c64
Greatly improved parsing of multi-word units
2020-01-09 23:01:31 +01:00
Kasper
80aacc6493
Made the "Answer" struct a generic struct "Number"
2020-01-09 20:58:45 +01:00
Kasper
d428546ecf
Added temperature units
2020-01-09 15:10:04 +01:00
Kasper
f1095ca8de
Much DRYer units.rs, testing change
2020-01-09 15:09:02 +01:00
Kasper
a0014f9afc
Added area, volume, mass units
2020-01-08 19:33:51 +01:00
Kasper
8fcd76a098
Evaluation of plus and minus
2019-12-22 21:35:58 +01:00