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
-2
votes
1 answer

How to make floating div's in jquery or bootstrap?

Can someone please show me how to make a floating div which moves when I scroll my mouse up and down in bootstrap or jquery? I've a lengthy page in which one div needs to be visible even if I scroll down.
user3154990
  • 555
  • 4
  • 13
  • 27
-2
votes
3 answers

Printing floating points in python

How can i print a variable whose value is a floting number? Eg. my_height = 1.75 #meters print "I'm %s meters tall." % my_height Why is the return 1 instead of 1.75, and how can i change it?
-2
votes
1 answer

Working out Normalised Floating Points

From the following options, expressed in hexadecimal notation, select the answer which is a normalised floating point number: Pick 1 answer I know the answer is one but I forgot how to work out this question, can anyone…
-2
votes
2 answers

How can I display a big double normally instead of scientifically normalized

I'm currently trying to make a simple calculator, but I want it to use somewhat big numbers(anything above 10^10 should do). And since any decent calculator has floating point operations, I decided to use double as my type. Sadly, when I tried to…
-2
votes
3 answers

Round list of string/float if greater than x

I wanted to see if there was a better way of doing the following: I have a list of strings which may actually be floats, letters and other characters like "-" and "*": mylist = ["34.59","0.32","-","39.29","E","0.13","*"] I was to create a new list…
Boosted_d16
  • 13,340
  • 35
  • 98
  • 158
-2
votes
1 answer

JQuery create a floating div

I want to create a floating div using jQuery that allows users to register first before accessing my site. The other part of the page will be disabled unless the user registers. A sample of the div am talking about can be found here. I don't know…
sammyukavi
  • 1,501
  • 2
  • 23
  • 51
-2
votes
1 answer

Floating point exception of my C program

This is the part causing the problem. I am really not able to find anything not ok. This part is for the mel binning function for a front end construction. The original document is at…
Yaozhong
  • 89
  • 1
  • 2
  • 7
-3
votes
1 answer

Why does Math.Round give me two different values?

class Program { static void Main(string[] args) { double d = 120.5; Console.WriteLine(Math.Round(120.5)); //121 Console.WriteLine(Math.Round(d)); // 120 } } When a variable is passed as an argument into Math.Round it…
Ah Boy
  • 17
  • 3
-3
votes
4 answers

python : converting Unicode to float with decimal precision

I would like to convert the unicode string to float with 2 decimal places. I am using locale.atof() to covert to float. I know that we can use locale.format to format the resulting value to 2 decimal points. Is it possible to use a single function…
SunilS
  • 2,030
  • 5
  • 34
  • 62
-3
votes
3 answers

c++: Floating point exception (core dumped)

Hey what wrong with this code. when run this code its showing some error floating point exception(core dumbed).I used g++ to compile this program. #include using namespace std; int checkprime(int num){ int ch=0; for (int n=2;n
-3
votes
2 answers

FloatingRateBond cashflow retrieval and printing

I am using the FloatingRateBond class to create a floating rate bond object, which I have already priced correctly. However, now I need to retrieve the cashflows and the dirty price to decompose the yield. I have been trying the following without…
-3
votes
1 answer

IEEE single precision floating-point format

Why doesn't the double precision format simply double the bits in each field, rather than only doubling the fraction bits? Also, what is the hidden bit and why is it used?
Amit Jain
  • 337
  • 2
  • 3
  • 7
-3
votes
1 answer

Space between products

I'm getting a annoying issue and I don't how to solve this, it seems simple but I didn't figure it out. You can see the problem here: (Ignore the testing texts and images) And here's the code
Tsukki
  • 33
  • 5
-3
votes
1 answer

GCD search for non-integers (***)

i really dont know how to solve this? can someone help me please? Find the approximation of greatest common divisor for a set of data (a vector of noninteger numbers). In general, these will not have an exact common divisor. The solution (also a…
-3
votes
1 answer

C Help! Floating Points

I have this question: We claim that it is unsafe to use equality testing with floating point numbers because the arithmetic operations introduce rounding errors which mean that two numbers which ought to be equal are not. For this program, you…
1 2 3
53
54