Hello everyone...
I am using JUNG to make a network diagram. I want to shape the vertices depending upon its type. The vertices are pickable and colored. The code for vertices so far is as under:
class VertexColors extends PickableVertexPaintTransformer<Number> {
VertexColors(PickedInfo<Number> pi) {
super(pi, Color.blue, Co...
I'm wondering if I found an issue with the rounding in PHP, specifically 5.2.3 (I'm not sure about other versions at the moment):
$t = 0;
$taxAmount = (5.000 / 100) * 0.7;
$t += $taxAmount;
var_dump($t); // float(0.035)
var_dump(round($t, 2)); // float(0.03)
var_dump(number_format($t, 2)); // string(4) "0.03"
To me 0.035 should roun...
Hi,
Let's say I have a time hh:mm (eg. 11:22) and I want to use a string tokenizer to split. However, after it's split I am able to get for example: 11 and next line 22. But how do I assign 11 to a variable name "hour" and another variable name "min"?
Also another question. How do I round up a number? Even if it's 2.1 I want it to rou...
i have value of 1.564 and 1.565 i need round this value to 1.56 and 1.56,which function suitable for this in c#.
...
I want to round up double value in two decimal places in c# how can i do that?
double inputValue = 48.485;
after round up
inputValue = 48.49;
...
does anyone know how purevolume.com gets their rounded corners? its very interesting and cross browser except I couldnt find the source code for it anywhere.
...
I was curious to know how I can round a number to the nearest tenth whole number. For instance, if I had:
int a = 59 / 4;
which would be 14.75 calculated in floating point; how can I store the number as 15 in "a"?
...
Right now i'm trying this:
int a = round(n) ;
where n is a double but its not working. What am i doing wrong?
...
round(123,-2)
100.0
How to round it to 100 instead of 100.0?
...
How can I mask my flash movie dynamically using actionscript to create a 5 pixels rounded mask in the 4 corners? (the corners should be transparent, the rest should be visible)
Thanks!
...
NOTE: This is from a Joomla component.
The Problem: When I enter, say, 4.90 into the price input box and hit save the price becomes 5, etc. I need for the value to remain as entered.
I've tracked down this block of code in the form.php looks like it might be the right one, but I can't figure out what needs to change:
function toTran...
Hello,
is there a simple way to round the result of a division to upper integer ?
I would like to have this :
18/20 -> 1
19/20 -> 1
20/20 -> 1
21/20 -> 2
22/20 -> 2
23/20 -> 2
... and so on ...
38/20 -> 2
39/20 -> 2
40/20 -> 2
41/20 -> 3
42/20 -> 3
43/20 -> 3
Must I manager with NSNumberFormatter stuff ?
I didn't success to get ...
Is it possible to easily round a figure up to the nearest 100 (or 1000, 500, 200 etc.) in SQL Server?
So:
720 -> 800
790 -> 800
1401 -> 1500
...
Hay, how would i go about rounded a number up the nearest multiple of 3?
ie
25 would return 27
1 would return 3
0 would return 3
6 would return 6
thanks
...
Welcome,
I would like to round up poll answers, but i can't get it working.
When i try to round_up and ceil, but get 10x percents (over 100% most 101%).
This is Example values
33.3333333333
16.6666666667
50
Any idea ?
...
I have a view that is round and hovering above (-> in z-axis direction coming out of the screen) the main content. When the someone taps the screen I want either the main content to be selected or the view hovering above, when it covers the main view.
So far that works perfectly. I have a round shaped item on a transparent canvas. Meani...
Hello,
I just started programming in python not long ago, and I'm having trouble figuring out the rounding issue when it comes to tax and money. I can't seem to get decimals to always round up to the nearest hundredths place. for instance, in our state, sales takes is 9.5%, so a purchase of 5 dollars would make tax $.48, but in realit...
Is there is a simple, pythonic way of rounding to the nearest whole number without using floating point? I'd like to do the following but with integer arithmetic:
skip = int(round(1.0 * total / surplus))
==============
@John: Floating point is not reproducible across platforms. If you want your code to pass tests across different p...