Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Leibnix

#1
I just want to say it's nice to see such a friendly and responsive forum. I will have to read and experiment a lot with newlisp before I can hope to be of any help to other beginners.
#2
I concur. But truncating to the integer part (or rounding towards zero) is a very funny thing to do in a mathematical sense. For instance, It means if you plot the function, you see an irregular section of the plot around zero. This irregularity can be the source of strange bugs if you are not constantly aware of it. People has been complaining about this 'feature' in standard c truncation for decedas.



But my main point is that the manual claims newlisp 'floors' the values. 'Floor' has a definite meaning in many math and computer science texts. It means to round down towards negative infinity.



Or doesn't it?



Btw, hope I don't sound too sour. I just read about newlisp in a Linux magazine and decided to give it a try. I REALLY like the slicing and indexing facilities! ^_^ I also am attracted to the heavy use of value assignment, because the first language I learned ("Euphoria") worked similarly. In that lingo there was no such thing as a reference!
#3
Hi!



The newlisp manual says:
QuoteFloating point values in arguments to +, -, *, /, and % are truncated to their floor value.

Since for instance the floor of -1.1 is -2 I would take this to mean (+ -1.1 -2.2) should equal -5, not -3.  



Is it just me or is this a bug or a typo in the manual?