|
|||||||
| Register | FAQ | The Twelve Commandments | Members List | Calendar | Arcade | Find the Best VPN | Today's Posts | Search |
| Qtella (Linux/Unix) Qtella has been discontinued. We highly recommend you use an actively developed client instead. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
what is the command ( syntax ) of getting
Q and remainder . On dividing 999 by 100 , i should get 9 as Q and Remainder as 99 . What is the syntax of getting the value of 10 to the power 3 i don't want to use 10*10*10 . some direct command ? Thanks |
|
#2
|
|||
|
|||
|
if you got 'bc' installed you can use that, with the flag -l, like this:
user@moo:~$ echo 999/100 | bc -l 9.99000000000000000000 |
|
#3
|
|||
|
|||
|
% is the generally used sign for modulus (i.e. getting the remainder in division)
^ is generally used for powers (e.g. 10^3) so your examples are 999%100 and 10^3 Your pal, bodly |
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Division by Zero Error | TheDude | Gnotella (Windows) | 2 | February 6th, 2001 08:49 PM |
| Scan Folder results in Division by 0 | eddie j | Gnotella (Windows) | 0 | February 2nd, 2001 11:28 AM |