Raised This Month: $ Target: $400
 0% 

Solved Nonsense Divide


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 06-22-2021 , 05:53   Re: Nonsense Divide
Reply With Quote #4

From "Pawn The Language":
Quote:
e1 / e2
Results in the division of e1 by e2. The result is truncated to the nearest integral value that is less than or equal to the quotient. Both negative and positive values are rounded down, i.e. towards −∞.
It just depends on how language designers decided. There are other mainstream languages that round towards -∞ too. There's no right or wrong choice here, it's just important to be consistent.
__________________

Last edited by klippy; 06-22-2021 at 05:54.
klippy is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode