版本发布 8
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 for compact * Add TL and ₺ as aliases for the Turkish lira * Improve performance
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
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)
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.
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
Changes in this version: * Add units `kgoe` and `toe` (kilogram/tonne of oil equivalent)
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`
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)