diff options
| author | Daniel Brooks | 2023-11-05 01:03:37 -0700 |
|---|---|---|
| committer | Eli Zaretskii | 2024-01-27 16:42:47 +0200 |
| commit | 77d9d05df87965409c537f49d59cb5ea632abda1 (patch) | |
| tree | ca8bf7d7076b77fa33a271e56fe4b9b0112a1c77 /doc/misc | |
| parent | 63a12ffbc37e46d2752b3903228fc8ec2c1fc611 (diff) | |
| download | emacs-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.texi | 16 |
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 |
| 10572 | form). The numerator and denominator always use the same radix. | 10572 | form). The numerator and denominator always use the same radix. |
| 10573 | 10573 | ||
| 10574 | @ifnottex | ||
| 10575 | Fractions may also be entered with @kbd{@U{2044}} (U+2044 FRACTION | ||
| 10576 | SLASH) 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 | ||
| 10579 | well. Thus @samp{2:3}, @samp{2@U{2044}3}, and @samp{@U{2154}} are all | ||
| 10580 | equivalent. | ||
| 10581 | @end ifnottex | ||
| 10582 | @iftex | ||
| 10583 | Fractions may also be entered with U+2044 FRACTION SLASH in place of | ||
| 10584 | any @kbd{:}. Precomposed fraction characters from U+00BD VULGAR | ||
| 10585 | FRACTION ONE HALF through U+215E VULGAR FRACTION SEVEN EIGHTHS as | ||
| 10586 | supported as well. | ||
| 10587 | @end iftex | ||
| 10588 | |||
| 10589 | |||
| 10574 | @node Floats | 10590 | @node Floats |
| 10575 | @section Floats | 10591 | @section Floats |
| 10576 | 10592 | ||