Keeping only one digit after the dot.

  • Context: High School 
  • Thread starter Thread starter PrudensOptimus
  • Start date Start date
  • Tags Tags
    Dot
Click For Summary
SUMMARY

The discussion centers on the mathematical methods for truncating a decimal number to retain only one digit after the decimal point. The proposed solution involves using the floor function, specifically the formula floor(10 * x) / 10, to achieve the desired result of converting 10.292288 to 10.2. Participants clarify that this method is distinct from rounding, which can yield different results depending on the direction of rounding. The conversation also touches on the concept of significant digits, indicating that truncation and rounding are not interchangeable processes.

PREREQUISITES
  • Understanding of the floor function in mathematics
  • Familiarity with rounding techniques and their implications
  • Knowledge of significant digits and their significance in numerical representation
  • Basic mathematical operations involving decimals
NEXT STEPS
  • Research the mathematical properties of the floor function
  • Learn about different rounding methods and their applications
  • Explore the concept of significant figures in scientific notation
  • Investigate programming functions for truncating decimals in languages like Python or JavaScript
USEFUL FOR

Mathematicians, data analysts, software developers, and anyone interested in numerical precision and representation in calculations.

PrudensOptimus
Messages
641
Reaction score
0
Hello,


Is there a mathematical way to get rid of all the digits after the dot except one? 10.292288.. how do i just make it 10.2?
 
Mathematics news on Phys.org
floor(10x)/10, perhaps?

See this for information on the floor function if it is unfamiliar.
 
U mean rounding...?BTW,oif u mean rounding,then your example could go both ways:rounding a decimal more which would mean 10.3,or less,which would mean 10.2

If u mean "significative digits",then the whole mechanism is not that simple as rounding decimals.In your case,u gave a # with 8 sign.digits and u want it with 3 only.In this case,the answer is correct.

Daniel.
 

Similar threads

  • · Replies 25 ·
Replies
25
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K