Questions tagged [floating]

This tag is related to GUI elements that either should be or appear to be floating above a panel or background, or in case of certain types of general layout.

This tag is related to GUI elements that either should be or appear to be floating above a panel or background, or in case of certain types of general layout.

800 questions
-3
votes
1 answer

Random floating Numbers and compare numbers if it is less than or equal to 0.01

In my homework I suppose to generate 10000 floating Numbers and I have to to compare If the difference between two numbers is less than or equal to 0.01 they are considered equal, then remove the second equal number! here is what I have done, but…
user2189467
-5
votes
4 answers

python formatting float numbers

my input is 3.23, but when I use float on it, it becomes 3.2, when my input is 3.00, when I do float on it, it becomes 3.0 when I convert to float from string, I still want it to be 3.00 and not 3.0 is it possible? I want to know the code to make…
Hick
  • 35,524
  • 46
  • 151
  • 243
-5
votes
2 answers

CSS | Center one div and position two divs, one on each side

I need to position divs as follows: The div2 element must be centered. The div3 element must be with 30px space between div3 finishes and div2 starts. The div4 element bust be with 30px space between div2 finishes and div4 starts. I need some help…
Egidi
  • 1,736
  • 8
  • 43
  • 69
-5
votes
2 answers

using php preg_match to validate float values

Using php (preg_match) to validate if a variable is float. Been searching online but still have not found the one that i need. Pls advise. my requirements: VALID (numbers and one dot only) 0.1 (anything starting with 0, must follow by a dot and then…
user1884324
  • 693
  • 5
  • 14
  • 21
-6
votes
2 answers

Why does 10.0/3 return 3.3333333333333335?

Why does 10.0/3 return 3.3333333333333335? It does not seem correct, does it? Is it a bug? 10.0/3 # => 3.3333333333333335
getupsix
  • 1
  • 1
1 2 3
53
54