MaxPrecision for numbers.

New releases and general discussions.

Post » 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

Post » 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

Post » Sat Oct 25, 2008 4:28 am

[quote="SoldjahBoy":315j3ad3]

~Sol[/quote:315j3ad3]

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

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. :P
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Sat Oct 25, 2008 12:46 pm

[quote="linkman2004":1bhauugr]
That's quite possibly the most awesome picture I've ever seen. :P

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. :P[/quote:1bhauugr]
Verily
B
4
S
2
G
4
Posts: 719
Reputation: 2,938

Post » 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

Post » 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.
ps. close the topic please.
B
4
S
2
G
4
Posts: 719
Reputation: 2,938


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 4 guests