Skip to content

Releases: printfn/fend

Version 1.5.8

24 Jan 04:15

Choose a tag to compare

Changes in this version:

  • Use rustls rather than native-tls by default
  • Add clear command to the interactive fend CLI
  • Fix significant figure rounding
  • Increase precision for pi
  • Fix currency conversions if the decimal separator is set to comma
  • Make variable serialisations more compact
  • Add TL and ₺ as aliases for the Turkish lira
  • Improve performance

Version 1.5.7

14 Jul 11:40

Choose a tag to compare

Changes in this version:

  • Add print and println functions

    These print functions are especially useful in scripts, for example:

    #!/usr/bin/env fend
    a = "Hello World";
    println(a);
    println(5 * 5);
    
  • Add exchange-rate-max-age configuration option

  • Add support for simultaneously downloading currency exchange rates from
    multiple APIs, improving reliability in case the API goes offline

  • Support trait implementations for random number generation

  • Fix several bugs when using commas as decimal separators

Version 1.5.6

14 Mar 06:33

Choose a tag to compare

Changes in this version:

  • Improve accuracy of pi and roots
  • Fix parsing of negated function calls like -sqrt 4
  • Add miscellaneous fend-web UI improvements

Version 1.5.5

16 Nov 22:17

Choose a tag to compare

Changes in this version:

  • Add text as a synonym for string (e.g. 5 to text)
  • Add units gf (gram-force), pond and variations thereof
  • Add at unit (technical atmosphere, equivalent to kgf/cm^2)
  • Add Torr unit (equivalent to 101325/760 Pascals)
  • Add kat/katal unit of catalytic activity
  • Add r/q/R/Q prefixes for ronto, quecto, ronna and quetta respectively
  • Add variants like sqcm, cm2, cbcm and cm3 for common length units
  • Add Cmd+k / Ctrl+k or Ctrl+l to clear the web UI output
  • Fix multiline input not being visible in the web UI
  • Persist command history in the browser's local storage when using the web UI
  • Change default exchange rate source to the European Central Bank as their API is more reliable.
  • Fix quetta prefix (equivalent to 10^30)

Version 1.5.3

05 Oct 22:00

Choose a tag to compare

Changes in this version:

  • Add support for using commas rather than dots as the decimal separator, as is common in many European languages. This can be enabled by setting decimal-separator-style = "comma" in ~/.config/fend/config.toml, and it changes e.g. 1.23 to 1,23, or 1,234.00 to 1.234,00.
  • Support large roman numerals beyond 1000 using overlines, e.g. 15400 to roman is X̅V̅CD. Numerals with an overline are 1000 times larger, so is 5,000, is 10,000 etc. Note that these numbers may not be displayed correctly if your terminal doesn't have full Unicode support.
  • Improve accuracy of logarithms and support logarithms with operands larger than 2^1023, e.g. log2 10^1234 now works correctly.
  • Add light_speed/lightspeed unit, equivalent to the existing constant c
  • Allow adding 0 regardless of units in some situations, e.g. 1 km + 0. This works because zero is the additive identity.

Version 1.5.2

15 Sep 06:31

Choose a tag to compare

Changes in this version:

  • You can now convert numbers to words. For example, 123 to words returns one hundred and twenty-three. This supports numbers up to 10^66 - 1 (vigintillions).
  • Add ton_of_tnt unit (approx. 4 gigajoules)
  • The linux-x64 binary has been renamed to linux-x86_64-gnu for consistency/clarity
  • Removed the Intel macOS build from CI. You can still build it from source, or use Homebrew or another package manager.

Version 1.5.1

10 Aug 03:31

Choose a tag to compare

Changes in this version:

  • Add units kgoe and toe (kilogram/tonne of oil equivalent)

Version 1.5.0

10 Jul 09:05

Choose a tag to compare

Changes in this version:

  • Add fibonacci function (e.g. fib 6 is 8, fib 7 is 13)
  • Keep percentage unit during automatic unit simplification
  • Support uppercase identifiers for built-in functions, e.g. SQRT or EXP

Version 1.4.9

20 Jun 09:29

Choose a tag to compare

Changes in this version:

  • Fix modulo and some other binary operators (including bitwise operators) returning incorrect results in calculations with certain scaled units, e.g. 4 mod (1k) or 4k xor 5
  • Add unit sol (Martian day)

Version 1.4.8

04 May 22:04

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