The character or glyph used to separate the integer part from the fraction part in a decimal number. Usually either a dot or a comma.
Questions tagged [decimal-point]
441 questions
-3
votes
2 answers
How to break a decimal value into integral and decimal portions
I'm currently working on a hotel management system's invoice (asp.net c#)... My question is that how to show the round off on a label example if the total amount is 8023.25 round off label should show .25 and totallabel should show 8023...
Please…

Amitabh Baidehi
- 33
- 2
- 8
-3
votes
1 answer
How to convert 2 numbers to 2 parts of a decimal number [C#]
Im trying to convert 2 user inputed numbers (for example):
double number = 5;
double number2 = 23;
into this:
decimalnumber = 5.23;

user8937820
- 1
- 2
-3
votes
1 answer
Why cant I enter a number with decimal point in scanf? in C
I'm writing a simple C program to classfiy distances into certain ranges such as short long or medium
I understand that C will cancel out numbers after the decimal point to store as an int.
So that confuses me that why can't I type in a number such…

LCS
- 13
- 5
-4
votes
2 answers
How to calculate number of digits before and after decimal point?
Today a question was asked in my c++ class test. "Write a program that inputs a floating point number and calculates the number of digits before and after decimal point."
I calculated numbers before decimal points with this code:
float…

Nafees Anwar
- 6,324
- 2
- 23
- 42