Questions tagged as 'float'

2
answers

error converting string to float in python

Hello, I'm having a problem I'm not getting conveter string for float The program takes the price of a game dps converts to string and positions through the character and I am not able to convert price =game.find(attrs="col search_price d...
asked by 11.06.2017 / 23:22
1
answer

How does the floatval function work?

I saw in the PHP documentation that there is a function called floatval() , to get the floating-point value of a variable. So I saw on the internet a question similar to that on the internet: $value = '152a.35678'; $value = floatval($val...
asked by 30.08.2017 / 19:26
1
answer

Using double type in c ++ can be more "fast" in terms of runtime than using floats?

I have a program developed in c ++ in visual studio, which processes a huge amount of data! This program can either use float or double data, and this specification is done as follows: typedef float/double real; ie in the previous statement...
asked by 02.06.2015 / 18:56
1
answer

Error reading% f and% e of a file in C

In the following snippet of my code I have to read a function from a txt file and extract its coefficients. When I put the coefficients as integers and reading them with %d works correctly, but when putting the coefficients with floating...
asked by 10.07.2014 / 04:11
0
answers

Transform strings into array or floats?

I have a problem: the user inserts two values, via graphical interface, separated by commas (I tested put in interface 10,0), and I need to transform these values into values that I can do accounts. I tried the code below, and I tested it by sta...
asked by 30.09.2018 / 22:00
1
answer

Problem with float css

I've created this code below to simulate the same problem on a website I'm developing to practice my html and css. I have two elements that float to the left and one to the right but when I clean the float of the second element the third element...
asked by 01.07.2018 / 23:31
2
answers

Form formatting problem

Good morning, I have a problem with the newsletter form of my site. I've done several searches trying to solve the problem, but the lack of knowledge of the area I think is making me impossible. rsrs The form basically takes Name, Email, a...
asked by 13.11.2017 / 12:57
0
answers

Working with cents in C [duplicate]

In the code below I can receive values in the no cents salary fields (example: 1,800), but if I put (1,800.20) it displays error. Detail I am using setlocale(LC_ALL,"Portuguese"); . printf("\nAntepenúltimo salário: "); scanf("%f", &...
asked by 09.09.2017 / 04:30
1
answer

I can not make an element have a wrap in a responsive layout

Good afternoon, I'm trying to make a layout responsive but I can not make the product description go under the image when the available space is too small. I have tried with display: flex and float but none worked. Follow the link on the page...
asked by 05.07.2017 / 20:42
1
answer

Variable float with 2-digit precision after the comma in sql oracle

How do I create a float variable with 2-digit precision after the comma in a table in SQL / Oracle. Thank you in advance.     
asked by 06.06.2017 / 15:36