Skip to content

Releases: printfn/fend

Version 1.4.8

04 May 22:04
Compare
Choose a tag to compare

Changes in this version:

  • Add support for % for modulo as an alternative to mod. 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, whereas 5% or 5% + 3 continues to be treated as a percentage.
  • Add constants electron_mass, proton_mass and neutron_mass

Version 1.4.7

04 May 02:45
Compare
Choose a tag to compare

Changes in this version:

  • Add Japanese units shaku, tsubo and tatami
  • 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

28 Mar 06:56
Compare
Choose a tag to compare

Changes in this version:

  • Add function mean (or average) 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) and U (rack units, equal to 1.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

13 Mar 08:54
Compare
Choose a tag to compare

Changes in this version:

  • Add support for converting numbers to roman numerals (e.g. 45 to roman becomes XLV)
  • 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

05 Mar 09:30
Compare
Choose a tag to compare

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 of rustls. On Windows this uses SChannel (via the schannel crate), on macOS it uses Secure Transport via the security-framework crate, and on Linux it links to OpenSSL with the openssl crate. You can continue using rustls by compiling with the --no-default-features --features rustls flags. See the CLI's Cargo.toml for further details.

Version 1.4.3

23 Feb 08:08
Compare
Choose a tag to compare

Changes in this version:

  • Add floor, ceil and round functions (by @frectonz)
  • Add ¥ symbol for Japanese Yen (by @frectonz)
  • Support power notation using Unicode superscript digits (e.g. 20²) (by @frectonz)

Version 1.4.2

23 Jan 10:18
Compare
Choose a tag to compare

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

07 Jan 07:58
Compare
Choose a tag to compare

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

27 Dec 08:30
Compare
Choose a tag to compare

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 % and million are now simplified unless you explicitly convert your result to one of those units. fend will now also simplify certain combinations of units, such as volts / ohms becoming amperes.

    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 with rand, which is better supported and fixes compilation errors on FreeBSD.

Version 1.3.3

08 Dec 08:13
Compare
Choose a tag to compare

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)