# MaxPrecision for numbers.

New releases and general discussions.

### » Fri Oct 24, 2008 12:18 am

What i want: a MaxPrecision function for construct to have the maximum number of digits of precision to be allowed in arbitrary-precision numbers.

Work-around: [code:1vcro4ou](number*10^n)/10^n[/code:1vcro4ou] But why not make this thing simple eh?
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

### » Sat Oct 25, 2008 3:58 am

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

### » Sat Oct 25, 2008 4:28 am

That's quite possibly the most awesome picture I've ever seen.

But I think what he means is that for numbers that are calculated to extreme decimal places, you could just use a little function and simplify it into a smaller amount of decimal places. For example, turning 1.2589512684 into 1.26. I think that's what he means, anyways.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

### » Sat Oct 25, 2008 12:46 pm

That's quite possibly the most awesome picture I've ever seen.

But I think what he means is that for numbers that are calculated to extreme decimal places, you could just use a little function and simplify it into a smaller amount of decimal places. For example, turning 1.2589512684 into 1.26. I think that's what he means, anyways. [/quote:1bhauugr]
Verily
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

### » Fri Nov 07, 2008 5:30 pm

This already exists: FormatDecimal(Value, # of decimal places)
B
2
S
2
G
5
Posts: 236
Reputation: 2,122

### » Fri Nov 07, 2008 6:08 pm

[quote="faggatron":2r0x47oy]This already exists: FormatDecimal(Value, # of decimal places)[/quote:2r0x47oy]
Damn didnt know that, thx.
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

### Who is online

Users browsing this forum: No registered users and 4 guests