I know many if us are laughing seeing this question , but if i have taken some floating point value and I want if the result is integer it should have some decimal point answer
eg - 1 can be integer number
I want 1.0 to appear in my result.
How to do that , I knows its a very basic question
Gurjit_1
0
Newbie Poster
Recommended Answers
Jump to PostThere are no stupid questions.
Do you want to appear this integer value on the screen?
Look up how to use a format specifier.
All 3 Replies
ddanbe
2,724
Professional Procrastinator
Featured Poster
Gurjit_1
0
Newbie Poster
DavidB
44
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.