Forums > MaxMSP

-


dhk
August 1, 2006 | 12:53 am

[ sorry! accidental double-post. Bad internet connection. ]


August 1, 2006 | 1:00 am

what works is, for example:

flonum – tosymbol – fromsymbol – flonum



dhk
August 1, 2006 | 1:23 am

I’m sorry, I don’t understand that. Is it supposed to shorten a long line of decimals to a finite number of decimals, e.g. two? It doesn’t do any difference to me on my computer. Try wiggling the left side of the upper flonum so you get lots of decimals…

Thanks for the answer, anyway. Wish it would work.


August 1, 2006 | 3:31 am

i was assuming your 24.999991 or what ever that was
was an uncorrected float. if you would make such a number
a symbol it will look like 25. again


August 1, 2006 | 8:57 am


August 1, 2006 | 9:12 am

did you look at Lround in the Lobjects ?
it allows you to specify how many decimals to round to.

On 1 Aug 2006, at 03:23, Dag Henning Kalv?y wrote:

>
> I’m sorry, I don’t understand that. Is it supposed to shorten a long
> line of decimals to a finite number of decimals, e.g. two? It doesn’t
> do any difference to me on my computer. Try wiggling the left side of
> the upper flonum so you get lots of decimals…
>
> Thanks for the answer, anyway. Wish it would work.
>
>

——————————————-

Joost Rekveld
———– http://www.lumen.nu/rekveld

——————————————-

"The mystery of the world is the visible, not the invisible"
(Oscar Wilde)

——————————————-



dhk
August 1, 2006 | 12:13 pm

Lround does the trick. Thanks for the tip, you guys are very helpful!

For the record: "Float Display Correction" was always on, I’m sure it would have been worse without it. Lround certainly seems to need it to function properly.

When I’m building an application, will my app "inherit" settings such as Float Display Correction? That option isn’t one of the standalone object’s options.


Viewing 7 posts - 1 through 7 (of 7 total)