On Wed, 19 Jan 2005 01:47:38 -0800, "Ragnar"
<(E-Mail Removed)> wrote in
microsoft.public.win2000.cmdprompt.admin:
>I want to do divisions in a dos box getting results with
>commas (or dots).
>
>like: 7 / 2 = 3,5
>or even 7,5 / 2 = 3,75
>More than 2 numbers after the comma arent necessary
>
>with "set /a ST=7/2" and "expr.exe 7 / 2" (from unix utils)
>i always get it rounded to 3
>
>Is there a way or a commandline tool where i can work with
>commas as variables?
Under 4NT the command "SET /A ST=7/2" shows the expected correct result.
AFAIK "SET /A" is not available under 4DOS, where JPSoft's native method
for calculations, the built-in function @EVAL, can be used. It sports a
pretty rich set of operations - see <http://jpsoft.com/help/f_eval.htm>.
4DOS is free, 4NT is not.
--
Michael Bednarek
http://mbednarek.com/ "POST NO BILLS"