Releases: printfn/fend
Version 1.4.8
Changes in this version:
- Add support for
%
for modulo as an alternative tomod
. Since%
is also used for percentages, the way the operator is interpreted depends on context:5 % 2
or(348*34)%(293-1)
is parsed as modulo, whereas5%
or5% + 3
continues to be treated as a percentage. - Add constants
electron_mass
,proton_mass
andneutron_mass
Version 1.4.7
Changes in this version:
- Add Japanese units
shaku
,tsubo
andtatami
- Significantly improve performance when calculating powers with decimal numbers, e.g.
e^27.2
- Revamp fend's web UI: it is now built with React and runs calculations in a background thread. This fixes the timeout issues that used to affect long-running calculations.
- Fix a bug where variable serialisation could cause numbers to be negated. This only affected fend-wasm and fend-web but could lead to incorrect results when using variables across multiple calculations.
- Add some custom TypeScript definitions to fend-wasm
Version 1.4.6
Changes in this version:
- Add function
mean
(oraverage
) to compute the mean value of probability distributions (by haykam821). For example:> mean(d6) 7 > average(1d20 + 5) 15.5
- Add units
nibble
(4 bits) andU
(rack units, equal to1.75 inches
) - Serialised variables are now compatible between 32-bit and 64-bit platforms
- Fix bug where calculating very large roman numerals could crash the application
Version 1.4.5
Changes in this version:
- Add support for converting numbers to roman numerals (e.g.
45 to roman
becomesXLV
) - Add
≠
as an alias for!=
(by @haykam821) - Add
<>
as another alias for!=
- Update Windows MSI installer to WiX 4
- The fend Telegram bot now directly replies to messages, making it easier to use in group chats (by @frectonz)
Version 1.4.4
Changes in this version:
-
Add
==
and!=
operators for equality and inequality (by @frectonz)For example:
> 2 metres == 200 cm true > 4 kg == 2 lbs false
-
The fend CLI now uses
native-tls
by default, instead ofrustls
. On Windows this uses SChannel (via theschannel
crate), on macOS it uses Secure Transport via thesecurity-framework
crate, and on Linux it links to OpenSSL with theopenssl
crate. You can continue usingrustls
by compiling with the--no-default-features --features rustls
flags. See the CLI'sCargo.toml
for further details.
Version 1.4.3
Version 1.4.2
Changes in this version:
- Add ability to convert codepoints to characters, e.g.
97 to character
(by @mat-1) - Fix horsepower value (by @probablykasper)
- Fix license files not being included in the workspace member packages (
fend-core
etc.) (by @albertlarsan68)
Version 1.4.1
Changes in this version:
- Fix bug where fend could return incorrect results when calculating exponents or roots of certain units, e.g.
sqrt(milli)
.
Version 1.4.0
Changes in this version:
-
The license of fend has changed. As of v1.4.0, fend is available under the GPL 3.0 (or later). See LICENSE.md for more information.
-
Change unit simplification and unit aliasing to be simpler and more consistent. Units like
%
andmillion
are now simplified unless you explicitly convert your result to one of those units. fend will now also simplify certain combinations of units, such asvolts / ohms
becomingamperes
.For example:
> 5% 0.05 > 46 million 46000000 > 0.5 to % 50% > 34820000 to million 34.82 million > (5 volts) / (2 ohms) 2.5 amperes > 3 feet * 125 kg * s^-2 114.3 newtons > c / (145MHz) approx. 2.0675341931 meters
-
Rename Windows installer artifacts (MSI files) to also include the version number, e.g.
fend-1.4.0-windows-x64.msi
. -
Replace
nanorand
dependency withrand
, which is better supported and fixes compilation errors on FreeBSD.
Version 1.3.3
Changes in this version:
- Add
pkgx
package (by @michaelessiet) - Add
x86_64-unknown-linux-musl
binary - Fix terminal issues on some architectures such as MIPS (by @eatradish)