Releases: printfn/fend
Releases · printfn/fend
Version 0.1.14
Changes in this version:
- Add support for strings and string literals. They can be in single or double quotes, and support a variety of escape sequences.
- Support conversions of numbers to strings
- Use
b
as shorthand for bits (including e.g.Gb/s
) - Remove the
0d
number prefix
Version 0.1.13
Changes in this version:
- Add °C and °F (including temperature conversions)
- Automatically simplify units in some calculations (e.g.
100 km/hr * 36 seconds
becomes1 km
) - Add initial support for objects (try e.g.
mass of earth
) - Add
square
andcubic
functions - Add hectares and acres
Version 0.1.11
Changes in this version:
- Improve debug representation (using e.g.
!debug 1
) - Use camel-case function names in
fend-wasm
Version 0.1.10
Changes in this version:
- Allow leading zeroes for decimal numbers
- Allow upper-case "E" for exponential numbers (e.g.
1E3
is1000
) - Add
in
as an alias forto
(so you can now write3.14 in binary
) - Add
log()
function as shorthand forlog10()
- Fix
kWh
unit definition
Version 0.1.9
Changes in this version:
- Include
LICENSE.md
files as part of the package on crates.io
Version 0.1.8
Changes in this version:
- Add 'version' command to get the current fend version
- Support
-sin pi
and3 sin pi
without parentheses - Support function inverses: e.g.
sin^-1
becomesasin
- Add
to sf
to convert numbers to a fixed number of significant figures - Make many calculations involving
sin
andcos
exact - Add
tau
(τ
), equal to2π
- Add Yi- and Zi- binary prefixes
- Use decimal approximations instead of fractions by default
x to exact
will now convertx
to an exact representation whenever possible, including using multiples of π- Add
cis
as a shorthand forcos θ + i * (sin θ)
Version 0.1.7
Changes in this version:
- Ensure that approximate numbers are always marked as such
- Fix a bug involving sin/cos/tan of negative numbers
- Make some calculations involving pi exact
- Fix parsing of recurring decimals in bases other than 10
- Add a changelog command to the command-line interface
Version 0.1.6
Changes in this version:
- Support parsing of numbers with recurring digits (e.g.
0.(3)
is equal to1/3
) - Support outputting mixed fractions (implicitly or via
to mixed_fraction
) - Support unmatched parentheses (e.g.
2+3)*(1+2
is15
) - Allow numbers that start with a decimal point, such as
.1
Version 0.1.5
Changes in this version:
- Add support for lambda functions (e.g.
\x.x
or(x: 2x) pi
) - Add live CLI output
- Change precedence of
to
,as
and->
Version 0.1.4
Changes in this version:
- Add the GNU units database, which contains several thousand unit definitions
- Add support for square roots of numbers with units
- Add unary division as a shorthand for
1/x
(e.g./ second
,64^/2
) - Support
+
in exponential notation (e.g.1.5e+2
) - Allow
,
as a digit separator (e.g.1,048,576
)