aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorDaniel Brooks2023-11-05 01:03:37 -0700
committerEli Zaretskii2024-01-27 16:42:47 +0200
commit77d9d05df87965409c537f49d59cb5ea632abda1 (patch)
treeca8bf7d7076b77fa33a271e56fe4b9b0112a1c77 /doc/misc
parent63a12ffbc37e46d2752b3903228fc8ec2c1fc611 (diff)
downloademacs-77d9d05df87965409c537f49d59cb5ea632abda1.tar.gz
emacs-77d9d05df87965409c537f49d59cb5ea632abda1.zip
Calc parses fractions written using U+2044 FRACTION SLASH
Fractions of the form 123⁄456 are handled as if written 123:456. Note in particular the difference in behavior from U+2215 DIVISION SLASH and U+002F SOLIDUS, which result in division rather than a rational fraction. * lisp/calc/calc-aent.el (math-read-replacement-list): Substitute a colon for any fraction slash. (Bug#66944) * test/lisp/calc/calc-tests.el (calc-frac-input): Test various fraction types. * etc/NEWS: * doc/misc/calc.texi (Fractions): Mention fraction slash, precomposed fractions. Copyright-paperwork-exempt: yes
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/calc.texi16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/misc/calc.texi b/doc/misc/calc.texi
index 7ae338307a5..31db77a0720 100644
--- a/doc/misc/calc.texi
+++ b/doc/misc/calc.texi
@@ -10571,6 +10571,22 @@ Non-decimal fractions are entered and displayed as
10571@samp{@var{radix}#@var{num}:@var{denom}} (or in the analogous three-part 10571@samp{@var{radix}#@var{num}:@var{denom}} (or in the analogous three-part
10572form). The numerator and denominator always use the same radix. 10572form). The numerator and denominator always use the same radix.
10573 10573
10574@ifnottex
10575Fractions may also be entered with @kbd{@U{2044}} (U+2044 FRACTION
10576SLASH) in place of any @kbd{:}. Precomposed fraction characters from
10577@kbd{@U{00BD}} (U+00BD VULGAR FRACTION ONE HALF) through
10578@kbd{@U{215E}} (U+215E VULGAR FRACTION SEVEN EIGHTHS) as supported as
10579well. Thus @samp{2:3}, @samp{2@U{2044}3}, and @samp{@U{2154}} are all
10580equivalent.
10581@end ifnottex
10582@iftex
10583Fractions may also be entered with U+2044 FRACTION SLASH in place of
10584any @kbd{:}. Precomposed fraction characters from U+00BD VULGAR
10585FRACTION ONE HALF through U+215E VULGAR FRACTION SEVEN EIGHTHS as
10586supported as well.
10587@end iftex
10588
10589
10574@node Floats 10590@node Floats
10575@section Floats 10591@section Floats
10576 10592