Author Topic: -: Calculations On Command Prompt :-  (Read 1265 times)

0 Members and 1 Guest are viewing this topic.

Offline oracle

-: Calculations On Command Prompt :-
« on: November 21, 2010, 12:37:36 PM »
   

The command processor CMD.EXE comes with a mini-calculator that can perform simple arithmetic on 32-bit signed integers:

C:\>set /a 2+2
4
C:\>set /a 2*(9/2)
8
C:\>set /a (2*9)/2
9
C:\>set /a "31>>2"
7

Note that we had to quote the shift operator since it would otherwise be misinterpreted as a "redirect stdout and append" operator.

For more information, type set /? at the command prompt.



All Student Forum

-: Calculations On Command Prompt :-
« on: November 21, 2010, 12:37:36 PM »

Offline Sub5

Re: -: Calculations On Command Prompt :-
« Reply #1 on: November 22, 2010, 10:42:17 PM »
Thanks Oracle, this is good to know, because some times when one is surfing the net
you will want to do one or two calculation especially when you are doing some transaction online.

Offline mfoniso

Re: -: Calculations On Command Prompt :-
« Reply #2 on: November 27, 2010, 11:31:19 PM »
@sub5 i agree with you.
Please do not PM me questions, ask all your questions in the forum, for others to learn from.

All Student Forum

Re: -: Calculations On Command Prompt :-
« Reply #2 on: November 27, 2010, 11:31:19 PM »

Offline oracle

Re: -: Calculations On Command Prompt :-
« Reply #3 on: November 30, 2010, 10:15:02 AM »
But the truth still remains that, the command line is meant for advance users, ..
Hey i am working on PHOTO STOP TUT .. want me to post it ??

Offline Sub5

Re: -: Calculations On Command Prompt :-
« Reply #4 on: December 05, 2010, 02:48:48 PM »
@oracle,Yea cant wait to see what you have for us

All Student Forum

Re: -: Calculations On Command Prompt :-
« Reply #4 on: December 05, 2010, 02:48:48 PM »

Offline dayson

Re: -: Calculations On Command Prompt :-
« Reply #5 on: May 27, 2011, 11:50:23 AM »
Oracle, you are too much.

Offline oracle

Re: -: Calculations On Command Prompt :-
« Reply #6 on: June 11, 2011, 01:02:25 PM »
Hey thanks...

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
Students goes to?:
What letter is missing in this word 'Gogle':

Related Topics

  Subject / Started by Replies Last post
4 Replies
1644 Views
Last post January 03, 2014, 10:16:51 AM
by mfoniso
0 Replies
628 Views
Last post January 16, 2014, 12:45:16 PM
by debby
0 Replies
644 Views
Last post March 29, 2016, 09:08:47 PM
by mfoniso