ratio

Calculate a Ratio in C#

I thought this would be simple, but searching Google didn't seem to help. I'm basically trying to write a function which will return a ratio as a string (eg 4:3) when supplies with two integers (eg 800 and 600). string GetRatio(Int A, Int B) { // Code I'm looking for return Ratio; } Many Thanks ...

MDX ability to calculate ratio of sums from child levels

I'm very much a novice at MDX, and have no idea how to approach this problem. I'd appreciate any help, even if just pointers to where relevant functions are explained. I need to be able to calculate the ratio of sums, where the numerator is a trivial SUM measure, but the denominator is the sum of dimension-specific values. For those k...

Image GD resize to 100px while keep the ratio

Hay Guys. I was wondering if anyone can help with resizing an image to 100px (wide, or high). While keep it's ratio and quality. All this needs to do is open a given file, resize it and overwrite the file with the new version (keeping the filename). It should only beable to do jpegs,gifs and pngs. I'm not fussed about transparencies...

IIS 7.5 compression ratio

Hi, How can I determine compression ratio for a specific web page in IIS 7.5? Thank you ...

Scaling ratio of two different resolutions

I have two different resolutions, the original one is 567x756 (wXh), the one which I want to display is 768x1024 (wXh). How to find out the scaling ratio for these two resolutions? For example if the font size used in 567x756 resolution is 7 pts then whats the values I should multiply with the font size (7 pts) to display the text in 768...

arbitrary datatype ratio converter

I have following code: template<typename I,typename O> O convertRatio(I input, I inpMinLevel = std::numeric_limits<I>::min(), I inpMaxLevel = std::numeric_limits<I>::max(), O outMinLevel = std::numeric_limits<O>::min(), O outMaxLevel = std::numeric_limits<O>::max() ) { double inpRange = abs(double(inpMaxLevel - inpMi...