Questions tagged [number-form]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
70 views

Why Max and Position do not work with NumberForm?

dats = Flatten@ ParallelTable[ NumberForm[RandomReal[], {3, 5}], {i, -4, 5, 1}, {j, 73}]; Then finding the max. value does not work ...
user avatar
0 votes
0 answers
63 views

When there is decimal number in N[], how can ensure digits more than machine precision?

We know that N[3/7,100] will keep 100 digits after decimal point. But N[3.1/7,100] will Keep only machine precision fewer ...
user avatar
  • 173
2 votes
1 answer
86 views

Get sign of unassigned variables

I want to find the signs of the following expression of unassigned variables: a = x1 x2 - x3 x4; The signs or prefactors are +1 ...
user avatar
3 votes
3 answers
121 views

Exporting CSVs of UTM coordinates. How to stop northing exporting in scientific notation?

I need to batch convert a folder of CSVs containing UTM coordinates from GDA94 to GDA2020. Sample data below: Copyable form: ...
user avatar
  • 31
1 vote
1 answer
70 views

Extending NumberForm

I'd like to define a function, call it NumberF, that takes a real number n and two naturals l...
user avatar
  • 4,138
0 votes
1 answer
70 views

Conversion to expression in base 17 with particular needs

So, I am trying to write a function that takes a number between 0 and 1 in base 10 as input and gives a list of its decimal figures in it's expression in base 17. For example, $f(0.5)= \lbrace 8,8,8,8,...
user avatar
2 votes
0 answers
79 views

PaddedForm - DigitBlock only respected for non-padding

I'm trying to pad some binary and hexadecimal numbers using PaddedForm, and also to separate the digits into blocks of 4. For example, I'd like a number like ...
user avatar
  • 555
1 vote
0 answers
58 views

Why don't AccountingForm, NumberForm and DecimalForm print more decimals?

I have the following set of equations: ...
user avatar
1 vote
1 answer
39 views

How to use Power with NumberForm?

Being in need of calculating the following numbers with 18 decimals of precision: $2^{2^{-x}}, x\in{\mathbb{N}}$. I looked for what built-in symbols can help me and found Power and NumberForm. I tried ...
user avatar
2 votes
2 answers
136 views

How to format a table of numbers with varying decimal points

Given: ...
user avatar
  • 4,391
13 votes
2 answers
710 views

How to enter a repeating decimal in Mathematica

I don't understand how to manipulate numbers with repeating decimal in Wolfram Mathematica language. For example 0.3... does not work as input and I don't see how ...
user avatar
0 votes
0 answers
65 views

Correct way to format numbers

I have defined the following function: randvec[mag_]:= mag Normalize[Table[RandomReal[], {j, 1, 4}]] I would like to format the numbers in the list so that they ...
user avatar
  • 883
2 votes
1 answer
80 views

Concatenate a variable with a string

I have a little problem with a variable and a string. I built a game with a panel that shows a random word,the player clicks "Yes" if he knows the meaning and clicks "No" otherwise....
user avatar
1 vote
1 answer
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: ...
user avatar
  • 818
2 votes
1 answer
67 views

Strange behavior of NumberForm with ScientificNotationThreshold option inside Dynamic

Using the ScientificNotationThreshold option inside NumberForm causes erroneous behavior and generates a mystifying error message when used inside Dynamic. For example, running ...
user avatar
  • 63
1 vote
1 answer
91 views

Number definition and approximation

I run these lines: a = 0.833 SetPrecision[a, 20] and this is the output: 0.833 0.83299999999999996270 I expected to ...
user avatar
3 votes
1 answer
92 views

Data in Atom Form

I am loading a dataset into Mathematica and the format is always recognized as an Atom String: DS[All, 4] ...
user avatar
0 votes
0 answers
39 views

Why does NumberForm disturb the output of Rationalize? [duplicate]

I am currently using Rationalize after NumberForm in order to check if the some values of my function are in the ...
user avatar
  • 763
5 votes
1 answer
71 views

Augment Export function to support custom number formatting

It's a shame that the Export framework provides no support for custom formatting of real numbers. Is it possible to augment the framework so that a "NumberForm" ...
user avatar
  • 122k
0 votes
1 answer
86 views

NumberForm with fixed width and exponent as "e+00" or "e-02"

I wish to export a matrix of real numbers out to a txt file in which the entries have the MatLab form: ...
user avatar
  • 1,095
3 votes
4 answers
222 views

Why do I get badly formatted numerical results when I use StringForm?

The following example prints the square and cube of numbers from 0.5 to 6 ...
user avatar
  • 185
2 votes
1 answer
452 views

Decimal format in Mathematica exported output

I am using ReadList to read an input file as Table format, and exporting the results. The ...
user avatar
  • 973
3 votes
2 answers
305 views

Print integer number fraction as string of numerator and denominator

I want to convert an integer number fraction as text with a certain font, size and color: Example: ...
user avatar
  • 2,266
1 vote
1 answer
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: ...
user avatar
  • 2,291
2 votes
2 answers
149 views

How to avoid this type of change of digits in computed numbers?

Is there a way to avoid the digits being changed? ...
user avatar
  • 8,374
2 votes
2 answers
244 views

Keep the format when output is copied and pasted

I have an output and I would like to copy and paste it into another .nb file. When I copy paste using Ctrl+c and Ctrl+v. I get When I copy paste using Ctrl+Shift+c and Ctrl+v. I get Or When I use ...
user avatar