|
Is there a native c++ variable type that's "bigger" than a double?
float is 7
double is 15 (of course depending on the compiler)
Is there anything bigger that's native, or even non-native?
Started by baash05 on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Your....
On an x86 platform, usually double is 64 bits, and long double is either 64 or 80 bits (which gives you 19 significant figures, if I remember right) .
C++ has long double , but there is no guarantee that it's any more precise than a plain double .
|
|
Howdy Egosoft Devs,
I have dozens of M3s, M4s, M5s, and about a dozen M1s/M2s/TLs. I'm sure I'll get this big again in Rebirth. However, storing all of this...materiel...is way cumbersome in AP. I have my stuff in a few sectors spread out across the universe...
Started by lt_wentoncha on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at egosoft):
At the moment In AP I have 6 Argon EQDs in my home sector... .
Would just deliver energy cells but be a good way of organising your fleet .
I've always thought a simple star shaped dock that can handle 5 caps and an internal hanger for fighters would be cool .
|
|
Started by taniquetil on
, 6 posts
by 5 people.
Answer Snippets (Read the full thread at reddit):
[Obligatory "Greeks are....
Waiting will only make the mess worse.
Spain will survive, but will lose their banks.
And most likely Italy.
Portugal too.
They will have to leave in the end anyway.
For all parts.
The sooner they leave the Euro, the better.
|
Ask your Facebook Friends
|
Hello.
I trying to check if a date is this date or bigger inside my linq query with boolean. But it's not working like i want.
This my code
public bool CheckMonth(int month) { if (month > System.DateTime.Now.Month) { return true; } else if (month =...
Started by Frozzare on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Call DateTime.Now once and place it in a variable to ensure that you are consistently.
With separate values.
|
|
I have a div 200 x 200 px. I want to place a 50 x 50 px right in the middle of the div.
How can it be done?
I am able to get it centered horizontally by using text-align: center for the div. But vertical alignment is the issue..
Started by sleepy on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
Line-height Personally, I'd place it as the background image within the div, the CSS for that being.
|
|
Is it better to write many small methods (or functions), or to simply write the logic/code of those small processes right into the place where you would have called the small method? What about breaking off code into a small function even if for the time...
Started by Pistos on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
I find its much easier.
The bigger the method, the harder to test and maintain.
Of an issue.
|
|
I'm using Box2D on my iPhone app using Cocos2D. I'm using mouse joint to drag objects by touch. The touch event is handled to find the corresponding Box2D body using AABB queries.
I would want to extend the area of Box2D bodies. In this way, I can touch...
Started by Ricibald on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You can also place.
The b2AABB object you use in the AABB query is a rectangle; just make it bigger.
|
|
Hi there,
I've been banging my head about this seemingly easy task and I could really use some help. I have a wide Image loaded in the gui (using the designer..) and I want to be able to draw only a portion of it, a rectangle. I need to be able to change...
Started by Ita on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I would definitely (for ease of use) just place an empty label as placeholder in Designer.
|
|
I've got a chunk of code that validates a user's username and password, which goes something like this:
$sql = "SELECT * FROM user WHERE username='{$_POST['username']}' AND password=MD5('{SALT}{$_POST['password']}')";
Is this any more/less secure than...
Started by davethegr8 on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
SQL injection will not occur if proper escaping and sanitizing takes place
Would the answer possible place for injection (username), and it's pretty impossible when you're doing a preg_replace.
|
|
Some math calculations in JS problem solving I am working on a zoom image functionality that creates a new div with a large image that is moved through x and y according to the mousemove on the image.
The large image should move a certain %, which is ...
Started by adardesign on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Edit: To put.
Determine where you need to place big image/div to be centred in relation to the other object.
|