# Questions tagged [rounding]

The tag has no usage guidance.

21 questions
Filter by
Sorted by
Tagged with
442 views

### Rounding Real number

I have real numbers in array, I want to round (or truncate) these numbers to 2-digit after decimal point, then I want to write values to Excel File For example if I have ...
• 73
1 vote
44 views

### Rounding Issue with a number containing ""

I would like to round a number saved in a weird format (I have no idea what the "" means, could someone explain?) to 3 digits: ...
• 818
96 views

### Round to certain values

For a program I write I need some optimal values. I calculated them using Mathematica and I get something like this: ...
• 1,114
122 views

### Rounding corners of lines

I can easily produce rectangles with rounder corners using RoundingRadius. However, I am unable to do for an open curve ...
42 views

### What is the limit of digits to show in the conversion of an exact number to an Arbitrary Precision Number?

By executing something like N[π, c] what is the maximum positive integer value c can have until the output is compromised by ...
227 views

• 2,291
1 vote
3k views

### Rounding a number to decimal places and keeping a trailing zero

It's often useful for me to round numbers to some decimal place for printing on a graph or figure. I usually do this by: ...
• 2,291
1 vote
110 views

### How can I Influence the number of digits when printing a polynomial expression or when I want to make it a String?

I have an expession (it is the result of Fit) but I want to print or display an abbreviated form with all numbers in it rounded to say 6 decimal digits. ...
• 2,442
83 views

### Why does Mathematica round numbers in this way where the fractional part is 0.5? [duplicate]

I was trying to comment on sequence https://oeis.org/A047229 in the OEIS, when one of the editors pointed out that the rounding is done wrong in this Mathematica one-liner: ...
• 1,057
1 vote
369 views

### Chop not working [closed]

I am running a function that has a large output in matrix format with small, complex parts added to the numbers- basically a rounding error. I am trying to use Chop to obtain use-able results, but ...
263 views

### Create an accumulator array from a function

I am making some images for a project about the hough transform line detection, I am showing the slope-intercept form , the normal form and their accumulator arrays to show the peaks. I am kind of new ...
• 63
531 views

### Opposite Collatz Conjecture

I'm trying to explore what would happen if you change the collatz conjecture to flip the equations for odds and evens. So if you have an even number you multiply by 3, add 1, and divide by 2. If you ...
• 153
1 vote
206 views

### Keep leading/trailing zeroes (like Defer except with numbers) in a given number

I'm trying to write a function that counts the number of significant figures a given number has so I can ensure my calculations are rounded correctly; however, I am having a lot of trouble preventing ...
• 113
288 views

### Why doesn't the Round function work on decimals and how to fix it or work around it [duplicate]

I'm trying to specify yaxis tick labels from 0 to 1.0 in steps of 0.1. This is what I get: ...
• 513
1k views

### Round vs. Floor vs. Ceiling for non-integers non-orders-of-magnitude

I understand that Round give the nearest even integer for cases where the number is between two integers, i.e. Round[2.5] = 2 ...
• 415
162 views

### Is the divergence between Round and setting an explicit precision intentional or a bug?

Introductory remark: I take it (from Mathematica's online documentation), that Precision is effectively the number of significant digits, as seen by the system. ...
• 3,675