Math function Floor()
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Math function Floor()
Is floor() available in LC?
I've tried to find out but haven't been able to find it, figured I should ask before giving up.
I've tried to find out but haven't been able to find it, figured I should ask before giving up.
Marcus
Re: Math function Floor()
what about trunc() ?trenatos wrote:Is floor() available in LC?
Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
Re: Math function Floor()
Yes, you are right...trenatos wrote:Doesn't trunc always round towards 0 though?
early morning, lack of coffee..

I just test round() and seems to be what you like or do I miss something?
Regards,
Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
Re: Math function Floor()
Round rounds to nearest whole number, floor() rounds to nearest *lower* whole number.
It's not that big of a deal, just strange to be missing, I'll just create the function for now and hope that RunRev builds floor() into future releases of LC.
It's not that big of a deal, just strange to be missing, I'll just create the function for now and hope that RunRev builds floor() into future releases of LC.
Marcus
Re: Math function Floor()
may be worth asking this in the "Feature requests" forum?trenatos wrote:.... and hope that RunRev builds floor() into future releases of LC.
Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Math function Floor()
It's common enough in other languages that it may be ideal to just submit the request directly to the LCQCC so it can be tracked:
http://quality.runrev.com/
Please include ceiling with that as well, since the two are commonly found together. Thanks.
http://quality.runrev.com/
Please include ceiling with that as well, since the two are commonly found together. Thanks.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Math function Floor()
Are you suggesting I add it as a "bug"?
And, I'm not going anywhere near the "Feature request" forum anytime soon.
-edit-
Made an account and found that I could post an Enhancement suggestion.
And, I'm not going anywhere near the "Feature request" forum anytime soon.
-edit-
Made an account and found that I could post an Enhancement suggestion.
Marcus
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Math function Floor()
The Quality Control Center form allows you to designate whether a report is a bug or a feature request.trenatos wrote:Are you suggesting I add it as a "bug"?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn