float tag

10 questions


1 answers
150 views
0
Differences between python terminal run and debug run

Hello.I was trying to code Python from linux to vscode, and the result was difficult to understand from simple numbers, so I'm asking you a question.Is there a difference between python terminal execu...


1 answers
76 views
0
I don't know exactly why I use %lf when I input real numbers in the scanf function.

I heard that if you receive a real data value from the scanf function, the data type of the factor value is automatically changed from float type to double type, so in that way, the int type data valu...

1 years ago

1 answers
74 views
0
[Java] Float and double

I basically used double to store real numbers in Java.However, there are float and double variable types that store real numbers. You can enter double as soon as you initialize it.double a = 1.5;Like ...

1 years ago

1 answers
93 views
0
Python type conversion error

of Python, to list serise value from the string float I was about to change it to error .What's wrong?The code intention is change_csv['Volume'] serise is 1.61M, 77.2K, and it's kilo and millon I want...

1 years ago

1 answers
76 views
0
I have a question about float 4byte data.

iobyte[0][0] = 44 , iobyte[0][1] = e8 , iobyte[0][2] = 35 , iobyte[0][3] = 42There is data that came in in the same form as Let's say 44e83542 in which the value of the float's real stored form is seq...

1 years ago

1 answers
124 views
0
cInsert real numbers into language strings

char practice[100];float value;int main(){value = 12.6332;practice[0] = value;printf(%f\n, practice[0]);} I put 12.6332 as the value value in the practice, but the result doesn't come out like that Wh...

1 years ago

1 answers
111 views
0
(Python) To find a mistake in a text file

fname = input('Enter the file name: ')try : fname = open(fname)except : print('Wrong file name') exit()for line in fname : line = line.rstrip() if line.startswith('X-DSPAM-Confidence: 0.8475') : prin...

1 years ago

1 answers
83 views
0
Hello, I have a question about the 1D arrangement of mistakes

#include <stdio.h>void main(){ double i, sale[5] = {157, 209, 251, 312, 500}; for (i = 0; i < 5; i++) { printf(\n address:%u sale[%d]=%d, &sale[i], i, sale[i]); }}This... I want to put ...

1 years ago

2 answers
140 views
0
To output to n decimal places of circumference

Hi, everyone. Input: n is entered within 25 and output: output: from below the decimal point of the circumference to n digits.#include <stdio.h>int main() { int n; char py[30] = 3.14159265358979...

1 years ago

1 answers
131 views
0
Why can't I convert the automatic version of C language when it's really simple?

#include <stdio.h>int main(void){ int c; float d = 5.6, e = 8.4; c = d + e; printf(c = d + e = %.2f \n, (float)c); return 0;}Isn't float d=5.6 and float=8.4 automatically converted to int, so it...

2 years ago

© 2024 OneMinuteCode. All rights reserved.