Answer to two decimal places

January 29, 2009 at 03:19:03
Specs: win xp 5.1.2600, 3mhz/2 gig
Hi guys, how do I get this to give the answer to 2 decimal places?

@echo off & cls
set /p choice=
set /a choice=%choice%
echo = %choice%
echo Press any key to start over... & pause>nul
goto :loop

See More: Answer to two decimal places

Report •

January 30, 2009 at 05:00:31
I figured it out!!!

set /a answer=%random%
if %answer% gtr 100 goto :create_random

That code generates a random number from and including 1 to and including 100.

Report •

January 30, 2009 at 08:07:23
I'm glad you've answered it but that's not what you originally asked!

Report •

January 30, 2009 at 10:39:26
Argh... sorry, I was going to ask the other question as well!! I tried it before I posted it though and got it to work.

But back to my 'posted' question: I havent got that to work yet so could anyone still try please?

Sorry Klint... I guess I should lay off the work coffee!!!

Report •

Related Solutions

Ask Question