double tag

15 questions


1 answers
87 views
0
How do I change a string to a double type?

if((e.getSource() == jBook)) { String name = jlbName.getText(); String date = jlbDateProduce.getText(); String time = jr1.getText(); int number = (Integer.parseInt(jtfNoOfTicket.getText().trim())); St...

2 years ago

1 answers
71 views
0
To check if double is a Not a Number (NaN)

I want to check if the value of double is NaN in Java, what should I do?

2 years ago

1 answers
134 views
0
How to determine if double/float is NaN?

Does C++ have a function like ishnan()?C was in <math.h> but C++ does not have <cmath>?*Oh, I'm using MinGW.

2 years ago

1 answers
61 views
0
Change function parameter double array element

int main(void){ int a[2]; double b[2]; printf (first person's age, height: \n); scanf(%d%lf, &a[0], &b[0]); printf (Second person's age, height: \n); scanf(%d%lf, &a[1], &b[1]); swap(i...

2 years ago

1 answers
93 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 ...

2 years ago
« - 2 -

© 2024 OneMinuteCode. All rights reserved.