The number-representation tag has no wiki summary.
0
votes
0answers
11 views
number property [migrated]
How can you prove that every natural number M or M+1 can be written as k + Sum(k), where Sum(k) represents the digits sum of number k.
Example:
248 = 241 + Sum(241) = 241 + 2 + 4 + 1
4
votes
1answer
79 views
How do I get Mathematica to show a number in non-exponential form? [duplicate]
Sometimes I make a calculation in Mathematica that produces a big number, which Mathematica shows like so:
-1.52522*10^7
This is annoying to me, because I want ...
3
votes
0answers
65 views
Is it possible to lower the bitwidth of (floating point) numbers?
The answer to this question will most probably be a definite no. Nevertheless, I would like to know whether it is possible to represent reals in the memory on less than the standard 32 or 64 bits ...
-1
votes
1answer
84 views
How can I change the default output number form to accounting form?
By default, large numbers are displayed in scientific form in output like 1.2345 x 10^8 in Mathematica 8.0.4, but I would prefer having numbers in accounting form ...
1
vote
1answer
82 views
Number with no decimal mark
I'm using Mathematica to create some images and labeling them after a simple calculation done previously. As the name of the file depends on the result, I want to show it with no decimal separator ...
9
votes
1answer
165 views
Number format in Legend Labels
I would like to use the usual (new and nice) BarLegend[] with something like
BarLegend[{"LakeColors", 1/10000 {-2, 2}}]
which ...
5
votes
2answers
229 views
Fast Karatsuba Squaring, how to?
I want to improve timing of squaring for big numbers.
So I asked What is the fastest way to split a number into parts and What is the most efficient way to add zeros to end of a number with several ...
4
votes
2answers
328 views
What is the most efficient way to add zeros to end of a number?
Beside *10^n, is there a faster way to add thousands of zeros to end of a number?
Updated
Timings:
...
1
vote
1answer
114 views
What is the fastest way to split a number into parts?
I have very large numbers (million digits).
number = A*10^partlen + B
As of now, I split the numbers by this way:
...
8
votes
2answers
475 views
Convert a string to hex number?
How can I convert a string containing a hex number such as "6b" to a hex digit that mathematica can use to do math with?
I have tried using ...
3
votes
2answers
204 views
hexList[[1]] returns a list of decimal numbers
Sorry for not being clear about this question earlier. I appreciate the answers I got, but the edits I made should make the question more understandable.
I have been working with hex in mathematica ...
1
vote
1answer
166 views
Change number from real to integer [duplicate]
Possible Duplicate:
Is this the most efficient way to round approximate integers to integers while leaving other Reals untouched?
Please consider the following:
...
3
votes
2answers
152 views
Representation of negative exponents [duplicate]
Possible Duplicate:
Way to improve “show me this decimal number to M places, don't use scientific notation”?
How can I expand e.g. number 1.*10^-8 so that there would be no ...
2
votes
2answers
333 views
Converting numbers to integers
I've read the available documentation but I still haven't found an NumberForm -> Integer function yet. No result in this site's search, either.
Does it exist?
...
2
votes
2answers
243 views
decompose a number (less than 255) in a sum of powers of 2
Is there a built in function that would take a number and decompose it into a sum of powers of 2? The numbers will be non negative less than 256.
For what it's worth I'm trying to understand a paper ...
16
votes
5answers
453 views
Is this the most efficient way to round approximate integers to integers while leaving other Reals untouched?
This might seem like an overly simple question, but I need to specify custom plot tick marks as integers (no trailing decimal point) if they are approximately integers, but not if they are not. Using ...