I have the following code:
typedef __int64 BIG_INT;
typedef double CUT_TYPE;
#define CUT_IT(amount, percent) (amount * percent)
void main()
{
CUT_TYPE cut_percent = 1;
BIG_INT bintOriginal = 0x1FFFFFFFFFFFFFF;
BIG_INT bintAfter = CUT_IT(bintOriginal, cut_percent);
}
bintAfter's value after the calculation is 14411518807...
Hello all,
I'm not an expert in SQL by any means, and am having a hard time getting the data I need from a query. I'm working with a single table, Journal_Entry, that has a number of columns. One column is Status_ID, which is a foreign key to a Status table with three values "Green", "Yellow", and "Red". Also, a journal entry is logged ...
I hope it's not a conflict in my CSS styles somewhere, but on my page (http://www.marioplanet.com/product.htm) I'm trying to apply a CSS rule to all images with a class of FancyBox to shrink them from 25% of their original size.
Now, I've heard that this may just be applying to the containing table cell, so please tell me if this is the...
Kind of an awkward title guys, sorry.
Anyway, I'm trying to resize my images with the following snippet of jQuery:
$(window).load(function(){
$('img.FancyBox').each(function(){
$(this).width($(this).width() * 0.25);
});
});
Now, this works, but it would be really nice if I could find a way to specify the images to load 25% of their o...
I'm reading excel and there's cell that represents total cost of budget in percents.
In excel it looks like 8%, but once i read it, i get string 8.33333333329E-2.
Got confused a bit.
What would be correct data type and parsing technique to use and avoid losing data?
...
There may be a simple fix for this, but it has troubled me for ages now...
Let me explain the situation. I have a div with the ID 'container' that holds all the contents in the page (including header and footer also) that will keep everything inline and I can do just 1 simple 'margin:0 auto;' instead of multiples. So lets say that I h...
i have a value that i calculate between 0 -100 ,
its usually a float number like 5.87876 , so i use number_format like :
$format_number = number_format($number, 2, '.', '');
the problem is , even the calculate number is integer like : 100
its show 100.00
but i want to display it like : 100
what is the elegant way to achive this ?
...
What are the use cases for defining distances in a web layout for pixels and percentages?
Is there any downside to using pixels with respect to multiple resolutions? Will they scale correctly?
...
Do you know any open source option or tutorial for showing percentage bar flash(i will use for show user's feedback score) ? Example(The bar which is filled green): http://profil.gittigidiyor.com/usatr34&fb=ver&s_select=s
...
I'm working on a project that involves diverting phone calls to a number of destinations.
For example, I want:
10% of calls to go to destination A
20% of calls to go to destination B
30% of calls to go to destination C
40% of calls to go to destination D
The number of destinations and their percentages must be configurable.
I've ...
I'm wondering if there is a more elegant way of adding a percentage. For example, if I wanted to add 12% of $a's value to $a I'm doing:
$a = 100;
$a = $a + (($a / 100) * 12);
Which gives me 112 as the new value, of course. But I can't help but feel this is a little too verbose and there must be a better way of doing the percentage add...
Hi,
I am still learning jQuery and have come up against something I just can't get my head around? (I'm not great at math!). I know that there is probably a graph type plug-in out there I could use but I don't know if I need something so bulky/code-heavy. Any help would be greatly appreciated. This website is the best learning source on...
What I need is query that show :
How many times value in field is Appearance and how many Percentage is from the total.
What I have until now is :
SELECT field, COUNT(field)
FROM table
GROUP BY field;
That show me result of how many time every value is Appearance.
How can I get also the Appearance Percentage in one query ?
I try...
Hi,
A wrong percentage has been applied to a field (TotalPercentageAmount) and I need to correct it.
Given 2 fields Amount and TotalPercentageAmount how can I calculate what percentage was applied?
I need to work out percentage applied to TotalPercentageAmount and UPDATE the column with correct percentage.
Little script I have created ...
How can we do validation for percentage numbers in textbox .
I need to validate these type of data
Ex: 12-3, 33.44a, 44. , a3.56, 123
thanks in advance
sri
...
Hey,
I have a sampling problem, for an analysis i have to calculate a revenue growth share. I found an article about sampling with negative numbers very helpfull since i have to work with a sum of revenues that is negative. The article suggests to make all the numbers absolute, but unfortunately this does not solve my problem. Since i am...
i want to show some data in percent.
i have a mathematics formula like:
(qty(S) + qty(B))/qty(id)*100%
could i show the result for example like 25%? how do i do that?
...
I'm trying to make a converter, but i don't know the formula to do this, for example, how do I get the ratio of 85694 of 30711152. So, i can get the % like 85694/30711152*100=0.28 (rounded) but how do I then get the ratio of like 1 in a 100? I believe that'd be around 1:400? But i don't know how to get it exactly or what formula to use.....
I am new to Div based Page Layouts. My questions is should we design div based page layouts using percentage or fixed pixel?
If percentage, what about cross browser compatibility?
If fixed pixels, what about different screen resolution? What screen resolution should we opt for?
Also, what should be the bases for our decision?
...
Dear All,
Figuring out a title for this question was hard, but the following is harder for me. I hope anyone can help.
I have a simple MySQL database table. This table is filled with records containing an ID and the number of week-visitors. It has records of 2 year of about 200+ websites.
To summarize, I want to be able to know two th...