Skip to content

Releases: printfn/fend

Version 1.5.5

16 Nov 22:17
Compare
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
Compare
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 VΜ… is 5,000, XΜ… 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
Compare
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
Compare
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
Compare
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
Compare
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
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)