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

Android display float using settext method

iam allmoust done with my app but iam stuck on this thing , i have two int's called "positive" and "negative" and when i procces source below it shows 0.0 total = positive + negative; float rate = positive/total; rate*=100; TextView…
Silvio Marijic
  • 483
  • 4
  • 12
  • 22
-1
votes
1 answer

Floating menu in html and css

I have a question about a floating picture I want to put on my page. I tried everything but it will not work how I want it. The problem is that de picture float perfectly, but when I open the page on a diffrent computer the picture is in the middle…
Pim
  • 29
  • 2
  • 4
-2
votes
1 answer

How to operate with numbers read as strings

Via readline() I read a txt file which includes both letters and numbers. In the txt file the first line is 18 20 8.9354 0 0 and I read it in this way import tkinter as tk from tkinter import filedialog root = tk.Tk() root.withdraw() file_path =…
-2
votes
1 answer

Why convert value of Float to String and String to Float are not same in java

I have have taken 10 digit float value and tried to convert it to string to print in a readable format. Here is the program to check public static void main(String[] args) { String s1 = "2139095039"; String s2 = "2.13909504E9"; Float f1…
-2
votes
1 answer

make a layout widget to be floating ouside of mainwindow pyqt5

everyone. I want to float a widget inside a layout of a main-window. the widget is disappered from layout but not displayed on screen As you can see from following code. I floated two labels 'lbl_title' and 'lbl_icon' they seems to be floated but…
dauren slambekov
  • 378
  • 3
  • 15
-2
votes
1 answer

CONVERT StringVar to Float

I'm a beginner in programming and I'm trying to write a calculator code. I had a problem with the outputs because I give the input as an str with StringVar(), but this prevents me to do decimal divisions such as a simple "54/10" for example. Is…
-2
votes
1 answer

How do you create a floating variable in Python?

Hi I'm trying to do my computer science course work, which is there to test my abilities (the one I chose was a Dice game. We are allowed to use recourses so I came here, and I need help as I have to create a scoring system but I need it to change…
-2
votes
1 answer

Floating Div Causing Trouble

I seem to have gotten into a peculiar problem with a floating div. The example of the div is at this website What i am unable to accomplish is to convert the menu contained in the div into a responsive stackable burger menu. I'll really appreciate…
-2
votes
1 answer

Floating button over other views - Android

I want to make a button or a view that is capable of showing up above EditTexts that when is clicked, certain action is performed upon that specific focused EditText. I don't know how it's called or if there is any 3d party library that does that.
David Lasry
  • 829
  • 3
  • 12
  • 31
-2
votes
1 answer

I need to add a cookie to this floating div

I need to add a 5 minute cookie to the code below so once ad is close it will come back in 5 minutes again, right now it shows on every page load
-2
votes
1 answer

How to add a floating button on ListFragment?

How to add a floating button on ListFragment? (listAdapter..) I saw lots of examples using activity but none substancial using ListFragments.. Is it even possible?
BVtp
  • 2,308
  • 2
  • 29
  • 68
-2
votes
1 answer

code to convert this number (9.10938291*10**-31) to binary (Python)

i want convert this number to binary so i can convert it to floating point later, the algorithm i know takes the part after the point of a number, for example if i put 9.32 it takes 0.32 and divides it by 0.5 on the function puntoflot() when its…
-2
votes
6 answers

How to print only the last floating number in python?

I made a script to add floating point numbers from a file. Each number is separated on its own line. My result looks something like this... 412.2693 412.4593 419.9593 I would like to only display the 419.9593 number. This is the last part of what I…
Justin P
  • 23
  • 3
-2
votes
1 answer

How to have best precision with double in range 0 -1?

My question is the following I have to perform operation with numbers in the range of [0,1]. Now suppose that i'm in the following situation: double[] a = new double[100](); // initialize a with random numbers double b = 1; for(int i=0; i<100;i++){ …
Sam
  • 313
  • 4
  • 21
-2
votes
1 answer

request and echo a float number from database

Is this the right way to show the float number within the MySQL Database? if ($a == "balance") { $querys= "SELECT balance FROM users WHERE Username='$user'"; $results= mysql_query($querys); $rows = mysql_fetch_row($results); $bfloat…
D.M.
  • 23
  • 1
  • 1
  • 5