![]() |
division 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 |
bc if you got 'bc' installed you can use that, with the flag -l, like this: user@moo:~$ echo 999/100 | bc -l 9.99000000000000000000 |
% 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 |
All times are GMT -7. The time now is 04:02 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.
Copyright © 2020 Gnutella Forums.
All Rights Reserved.