Releases: printfn/fend
Releases · printfn/fend
Version 1.2.1
Changes in this version:
- Add Chinese units
jin
andgongjin
(by @eatradish) - Add Xbps (Void Linux) package (by @tranzystorek-io)
- Add MacPorts package (by @herbygillot)
Version 1.2.0
Changes in this version:
- Variable names with underscores can now be correctly referenced
- Combined abbreviated units are now parsed case-insensitively:
> 100 kwh 100 kWh > 64 KB 64 kB
- Add a new configuration option
enable-internet-access
(defaults totrue
) - Add
tbs
unit as an abbreviation for tablespoons - Add
thou
unit, representing a thousandth of an inch
Version 1.1.6
Changes in this version:
- Add cup, tablespoon and teaspoon units (by @elcste)
- Add
bin
alias for binary (by @xfnw) - Change the internal implementation of exchange rate handlers (by @SekoiaTree)
- Fix unit test failures on 32-bit systems
Version 1.1.5
Changes in this version:
-
Add
@no_trailing_newline
attribute, which causes fend to not print a trailing newline after the calculation.$ fend @no_trailing_newline 5+5 10
Version 1.1.4
Changes in this version:
- Add support for subtracting from dates (e.g.
@2023-01-08 - 5 days
) - Fix some trigonometric functions behaving incorrectly when passing in values with units
Version 1.1.3
Changes in this version:
- Add operators for permutations and combinations (by @frectonz)
n permute k
orn nPr k
: compute the number ofk
-permutations ofn
n choose k
orn nCr k
: number ofk
-combinations ofn
- Add
@noapprox
attribute to hide theapprox.
annotation in the output:> pi approx. 3.1415926535 > @noapprox pi 3.1415926535
- Add
@plain_number
attribute, to removeapprox.
and any units. This is especially useful in automated scripts.> 5 m / (3 s) approx. 1.6666666666 m / s > @plain_number 5 m / (3 s) 1.6666666666
- Add a new date literal syntax, e.g.
@2000-01-01
- Improve visual feedback when using the Telegram bot (by @miki-tebe)
- Add new SI prefixes quecca, ronna, ronto and quecto (by @frectonz)
- Add support for 256 (8-bit) colors in the CLI configuration
- Change
!debug
to@debug
for consistency and improved shell script interoperability
Version 1.1.2
Changes in this version:
- Add
and
andor
keywords as alternatives to the&
and|
bitwise operators - Add Homebrew package (by @rhysmdnz)
- Add Chocolatey package (by @dgalbraith)
- Fix incorrect description of command-line arguments in man page (by @mcint)
- Support
_
in fend-web (stores the previous answer) - Improve fend-web performance by serializing/storing variables properly
- Support case-insensitive currencies
- Support currency exchange rates in fend-wasm (by @NickGeek)
- Support using any base currency for exchange rate calculations, not just USD
Version 1.1.1
Changes in this version:
- Add bitwise operators:
&
: bitwise AND|
: bitwise ORxor
: bitwise XOR (^
is already used for exponentiation)<<
: left shift>>
: right shift
Version 1.1.0
Changes in this version:
- Automatically download up-to-date currency exchange rates, e.g. when calculating
10 EUR to USD
- fend can now read directly from files, e.g.
fend calculation.txt
will read and evaluate the contents ofcalculation.txt
. Multiple files can be specified, as well as combinations of files and expressions. - Shebangs (e.g.
#!/usr/bin/env fend
) no longer result in parse errors - You can now use
--
to force fend to interpret arguments literally, e.g.fend -- -V
is interpreted as-1 volts
instead of showing the version number - Fix bug where trailing whitespace or comments would result in a parse error
- Add a man page
- Add an MSI installer for Windows
- Remove MSIX installer, which was difficult to use due to it being unsigned
- Change fend website to https://printfn.github.io/fend
- Move fend documentation to https://printfn.github.io/fend/documentation
- Add a fend package to the Windows Package Manager (
winget
)
Version 1.0.5
Changes in this version:
- Add a
fend-wasm-nodejs
NPM package - Add a Telegram bot
- Improve behaviour of percentages (credit to @Techcable), e.g.
5% * 80kg
is now4 kg
- Add a Markdown-like parsing mode to the WASM API