Commit f6817529 authored by Jay Belanger's avatar Jay Belanger
Browse files

* doc/misc/calc.texi (Basic Operations on Units): Streamline some

  descriptions.
parent 78cd48e7
2013-03-09 Jay Belanger <jay.p.belanger@gmail.com>
* calc.texi (Basic Operations on Units): Streamline some
descriptions.
2013-03-08 Glenn Morris <rgm@gnu.org> 2013-03-08 Glenn Morris <rgm@gnu.org>
* faq.texi (Top): Don't say this was updated @today. * faq.texi (Top): Don't say this was updated @today.
......
...@@ -27859,7 +27859,8 @@ while typing @kbd{u c au/yr @key{RET}} produces ...@@ -27859,7 +27859,8 @@ while typing @kbd{u c au/yr @key{RET}} produces
   
If the units you request are inconsistent with the original units, the If the units you request are inconsistent with the original units, the
number will be converted into your units times whatever ``remainder'' number will be converted into your units times whatever ``remainder''
units are left over. For example, converting @samp{55 mph} into acres units are left over. (This can be disabled; @pxref{Customizing Calc}.)
For example, converting @samp{55 mph} into acres
produces @samp{6.08e-3 acre / m s}. (Recall that multiplication binds produces @samp{6.08e-3 acre / m s}. (Recall that multiplication binds
more strongly than division in Calc formulas, so the units here are more strongly than division in Calc formulas, so the units here are
acres per meter-second.) Remainder units are expressed in terms of acres per meter-second.) Remainder units are expressed in terms of
...@@ -27875,12 +27876,6 @@ change the @samp{s} to @samp{ms} to get @samp{9.8e-4 cm/ms^2}. ...@@ -27875,12 +27876,6 @@ change the @samp{s} to @samp{ms} to get @samp{9.8e-4 cm/ms^2}.
The ``remainder unit'' @samp{cm} is left alone rather than being The ``remainder unit'' @samp{cm} is left alone rather than being
changed to the base unit @samp{m}. changed to the base unit @samp{m}.
   
If you want to disallow using inconsistent units, you can set the
customizable variable @code{calc-ensure-consistent-units} to @code{t}
(@pxref{Customizing Calc}). In this case, if you request units which
are inconsistent with the original units, you will be warned about it
and no conversion will occur.
You can use explicit unit conversion instead of the @kbd{u s} command You can use explicit unit conversion instead of the @kbd{u s} command
to gain more control over the units of the result of an expression. to gain more control over the units of the result of an expression.
For example, given @samp{5 m + 23 mm}, you can type @kbd{u c m} or For example, given @samp{5 m + 23 mm}, you can type @kbd{u c m} or
...@@ -27916,13 +27911,11 @@ prompt first for the old units which this value should be considered ...@@ -27916,13 +27911,11 @@ prompt first for the old units which this value should be considered
to have, then for the new units. (If the value on the stack can be to have, then for the new units. (If the value on the stack can be
simplified so that it doesn't contain any units, like @samp{ft/in} can simplified so that it doesn't contain any units, like @samp{ft/in} can
be simplified to 12, then @kbd{u c} will still prompt for both old be simplified to 12, then @kbd{u c} will still prompt for both old
units and new units. You can ignore the prompt for old units with units and new units. This can be disabled; @pxref{Customizing Calc}.)
@key{RET}, or turn off the prompt by setting the customizable variable Assuming the old and new units you give are consistent with each
@code{calc-allow-units-as-numbers} to @code{nil}; other, the result also will not contain any units. For example,
@pxref{Customizing Calc}.) Assuming the old and new units you give are @kbd{@w{u c} cm @key{RET} in @key{RET}} converts the number 2 on the
consistent with each other, the result also will not contain any stack to 5.08.
units. For example, @kbd{@w{u c} cm @key{RET} in @key{RET}} converts
the number 2 on the stack to 5.08.
   
@kindex u b @kindex u b
@pindex calc-base-units @pindex calc-base-units
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment