Releases: printfn/fend
Releases Β· printfn/fend
Version 1.5.5
Changes in this version:
- Add
text
as a synonym forstring
(e.g.5 to text
) - Add units
gf
(gram-force),pond
and variations thereof - Add
at
unit (technical atmosphere, equivalent tokgf/cm^2
) - Add
Torr
unit (equivalent to 101325/760 Pascals) - Add
kat
/katal
unit of catalytic activity - Add
r
/q
/R
/Q
prefixes forronto
,quecto
,ronna
andquetta
respectively - Add variants like
sqcm
,cm2
,cbcm
andcm3
for common length units - Add
Cmd
+k
/Ctrl
+k
orCtrl
+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
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
to1,23
, or1,234.00
to1.234,00
. - Support large roman numerals beyond 1000 using overlines, e.g.
15400 to roman
isXΜ 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^1234
now works correctly. - Add
light_speed
/lightspeed
unit, equivalent to the existing constantc
- 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
Changes in this version:
- You can now convert numbers to words. For example,
123 to words
returnsone hundred and twenty-three
. This supports numbers up to10^66 - 1
(vigintillions). - Add
ton_of_tnt
unit (approx. 4 gigajoules) - The
linux-x64
binary has been renamed tolinux-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
Changes in this version:
- Add units
kgoe
andtoe
(kilogram/tonne of oil equivalent)
Version 1.5.0
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
orEXP
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 % 2
or(348*34)%(293-1)
is parsed as modulo, whereas5%
or5% + 3
continues to be treated as a percentage. - Add constants
electron_mass
,proton_mass
andneutron_mass
Version 1.4.7
Changes in this version:
- Add Japanese units
shaku
,tsubo
andtatami
- 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
Changes in this version:
- Add function
mean
(oraverage
) 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) andU
(rack units, equal to1.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
Changes in this version:
- Add support for converting numbers to roman numerals (e.g.
45 to roman
becomesXLV
) - 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)