Skip to content

Releases: kasper9n/cpc

v4.2.0

Choose a tag to compare

@github-actions github-actions released this 01 Jul 07:14
b0953fb
  • Add ambiguous unit resolution depending on context and user locale.
  • Add ambiguous units like pound, deg, $ and kr
  • Add currency symbols like and kr
  • Add as and into keywords for unit conversion
  • Fix some units not being simplified

v4.1.0

Choose a tag to compare

@github-actions github-actions released this 29 Jun 10:42
daaa8e8
  • Add currency units

v4.0.0

Choose a tag to compare

@github-actions github-actions released this 27 Jun 09:37
de5f1cf
  • Rewrite units to be exponent-based, making things like km^5 and sqkm^-1 possible
  • Add generic unit multiplication and division, such as 1kg/1m and 1m*1kg
  • Add generic unit combinations, such as 1kg/m, 1km per year and m+km
  • Add generic unit simplification. For example, 1kg*1sqm/1s/1s/1s/1a now becomes 1 volt
  • Add indicator when a result is approximate
  • Add case-sensitive Bps units for bytes per second
  • Use max precision for inexact unit conversions
  • Fix ^ allowing numbers to be raised to the power of units

v3.1.0

Choose a tag to compare

@kasper9n kasper9n released this 20 Jun 00:26
f765bca
  • Add FLOP and FLOPS units
  • Update fastnum dependency
  • Fix conversion of torr, btu/s and btu/h
  • Fix unit spellings
  • Fix spelling of decares

v3.0.0

Choose a tag to compare

@github-actions github-actions released this 30 May 09:47
dad7a21
  • Create a website interface
  • Add wasm version
  • Switch to the fastnum crate's d128
  • Fix exp function

v2.0.0

Choose a tag to compare

@kasper9n kasper9n released this 29 May 23:34
31acf60
  • Remove the degrees keyword which referred to celcius by default
  • Remove the default_degrees argument from eval() and lex(). Not necessary now that the degrees keyword is removed
  • Fix trigonometry imprecision
  • Fix unnecessary scientific notation

v1.9.3

Choose a tag to compare

@github-actions github-actions released this 20 Sep 04:23
1f16e10
  • Fix negative unary - always having higher precedence than ^. This resulted in -3^2 returning 9 instead of -9

v1.9.2

Choose a tag to compare

@github-actions github-actions released this 10 Jul 22:31
55b7ad0
  • Fix automatic light year unit not chosen for large distances (@gcomte)

v1.9.1

Choose a tag to compare

@github-actions github-actions released this 29 Mar 23:18
e4ccc60
  • Improve formatting of numbers
  • Remove unnecessary dependencies (@jqnatividad)

v1.9.0

Choose a tag to compare

@github-actions github-actions released this 30 Dec 11:52
b08dbdf
  • Add marathon unit
  • Add aarch64 binaries