Releases: printfn/fend
Releases · printfn/fend
Version 1.5.8
Changes in this version:
- Use
rustlsrather thannative-tlsby default - Add
clearcommand 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
Changes in this version:
-
Add
printandprintlnfunctionsThese 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-ageconfiguration 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
Changes in this version:
- Improve accuracy of pi and roots
- Fix parsing of negated function calls like
-sqrt 4 - Add miscellaneous
fend-webUI improvements
Version 1.5.5
Changes in this version:
- Add
textas a synonym forstring(e.g.5 to text) - Add units
gf(gram-force),pondand variations thereof - Add
atunit (technical atmosphere, equivalent tokgf/cm^2) - Add
Torrunit (equivalent to 101325/760 Pascals) - Add
kat/katalunit of catalytic activity - Add
r/q/R/Qprefixes forronto,quecto,ronnaandquettarespectively - Add variants like
sqcm,cm2,cbcmandcm3for common length units - Add
Cmd+k/Ctrl+korCtrl+lto 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
quettaprefix (equivalent to 10^30)
Version 1.5.3
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.23to1,23, or1,234.00to1.234,00. - Support large roman numerals beyond 1000 using overlines, e.g.
15400 to romanisX̅V̅CD. Numerals with an overline are 1000 times larger, soV̅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^1234now works correctly. - Add
light_speed/lightspeedunit, equivalent to the existing constantc - Allow adding
0regardless of units in some situations, e.g.1 km + 0. This works because zero is the additive identity.
Version 1.5.2
Changes in this version:
- You can now convert numbers to words. For example,
123 to wordsreturnsone hundred and twenty-three. This supports numbers up to10^66 - 1(vigintillions). - Add
ton_of_tntunit (approx. 4 gigajoules) - The
linux-x64binary has been renamed tolinux-x86_64-gnufor 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
Changes in this version:
- Add units
kgoeandtoe(kilogram/tonne of oil equivalent)
Version 1.5.0
Changes in this version:
- Add fibonacci function (e.g.
fib 6is 8,fib 7is 13) - Keep percentage unit during automatic unit simplification
- Support uppercase identifiers for built-in functions, e.g.
SQRTorEXP
Version 1.4.9
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)or4k xor 5 - Add unit
sol(Martian day)
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 % 2or(348*34)%(293-1)is parsed as modulo, whereas5%or5% + 3continues to be treated as a percentage. - Add constants
electron_mass,proton_massandneutron_mass