I want to limit decimal place till 4 for below code, how to do that,  var a = Convert.ToDecimal( 80794992640) / (1024 * 1024);
I want to do this using the Math.Round function
Proving the AM-GM inequality for 2 numbers $\sqrt{xy}\le\frac{x+y}2$ I am having trouble with this problem from my latest homework.  Prove the arithmetic-geometric mean inequality. That is, for two positive real numbers $x,y$, we have $$ \sqrt{xy}≤ \frac{x+y}{2} .$$ Furthermore, equality occurs if and only if $x = y$.  Any and all help would be appreciated. How do I prompt for Yes/No/Cancel input in a Linux shell script? What's the derivative of: $ \sqrt{x+\sqrt{{x}+\sqrt{x+\cdots}}}$? let $ y=\displaystyle \sqrt{x+\sqrt{{x}+\sqrt{x+\cdots}}}$, i'm really interesting to know how do I find :  $\displaystyle \frac{dy}{dx}$ ?.  Note: I have used the definition of derivative of the square root function but i don't succed .  Thank you for any help How come if $\ i\ $ not of the following form, then $12i + 5$ must be prime? How can I check the SMART status of a SSD or HDD on current versions of Ubuntu 14.04 through 20.04? Biblatex citation order How do I calculate the closest power of 2 or 10 a number is? Where did dedicated.abac.net. come from in my rDNS and PTR records? Does any uncountable set contain two disjoint uncountable sets? Is it true that for any uncountable $S$, there exits two uncountable subsets $S_1,S_2 \subseteq S$ with $S_1 \cap S_2 = \emptyset$?   I can find no counter example, but no proof either.  I am aware of similar questions regarding the partition of uncountable subsets of the real line, and there are many examples of disjoints uncountable subsets of $\mathbb{R}$, say $R_1,R_2$.   It is not clear to me however whether this extends to any uncountable set. For uncountable sets $S$ with $S \succeq_{card} \mathbb{R}$, there exists an injection $f : \mathbb{R} \rightarrow S$ and choosing $S_1,S_2$ with $S_i = \{s\in S~|~ s = f(r_i) $ for some $ r_i \in R_i\}$, works.   But from what I understood of the continuum hypothesis, there might exist an uncountable sets $H$ with $\mathbb{R} \succeq_{card} H$. So using the above argument, one cannot infer that the property holds for every uncountable sets from observing that it holds for $\mathbb{R}$. Is this right? Are there other ways to prove or disprove the assertion? Good refactoring support for C++ The Visual Studio refactoring support  for C# is quite good nowadays (though not half as good as some Java IDE's I've seen already) but I'm really missing C++ support.  I have seen  and am currently trying it out, but maybe one of you guys know a better tool or plugin?  I've been working with  now for a week or two and got totally addicted. Thanks for the tip, I'll try to convince my boss to get me a license at work too.  I've been bughunting for a few days since Visual Assist X kept messing up my Visual Studio after a few specific refactorings, It took me (and customer support) a week to hunt down but let's say for now that Visual Assist X is not a good combination with . As a new user without much rep, what should I do if someone else has already asked a question I have, but it has no answers? Transfer Clash of Clans account from one G+ to another G+ account? How to select distinct field values using Solr? We just had a scenario where the enemy set up a 'death trap' with arrow slits covering a corridor, allowing them to pop in, shoot, then pop out -- all without actually entering the corridor.  Which was fine in and of itself, until my cleric ran through the corridor at top speed, with Spirit Guardians up.  The DM and I discussed it, and as far as we can tell the spell doesn't require a line of sight and isn't blocked by walls -- just being 'in range' gets you the damage.  So I wiped out an entire encounter with one well placed third level spell.  In and of itself, that doesn't seem too OP -- at level 5/6 a third level spell is a pretty big investment!  But it still seems a bit odd that I can do it without even LOS.  Are there any rules I'm missing? What do the different colours in Ubuntu's ls command mean? For example, when I type the ls command in one of my folders, I get one of the files in light green, the other (which is a folder) in blue with green highlighting.   What do those colours mean, and there is any manual about all the colours? I would like to know the model of my graphics card. I think it may be an ATI, but I want to be sure!   I have Ubuntu 11.10 (32 bit) and an Asus A6 VA laptop. How can I return to the start of a line in a console? How can I return to the start of a line and overwrite what has already been output on the console? The following does not appear to work:  System.out.print(mystuff+'\r'); When there is a Personal Hotspot network available, it displays a chain link icon instead of the usual lock icon in the list of available networks on iOS and OS X.    My question is, how does OS X distinguish these networks? Is it specified in 802.11 how hotspots broadcast their SSID's differently? I'm trying to find out why my application is very slow on a certain machine (runs fine everywhere else). I think i have traced the performance-problems to hard-disk reads and writes and i think it's simply the very slow disk.  What tool could i use to measure hd read and write performance under Windows 2003 in a non-destructive way (the partitions on the drives have to remain intact)? This is trigonometry from double angles and compound angles. Thus far I've simplified it up to this point. $$2 \sin^2θ – 3\sinθ +1 = 0$$  I'm trying to factorize this to solve for General Solution. I tried taking out a common but that +1 is giving me a problem. I used the quadratic equation to get 1 and 0.5 as an answer, but i don't know how to write it in terms of 2sin(squared)θ and -3sinθ.  Any help will be appreciated.