[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] (ODATA-997) Define modulo operator for non-integral numeric values
[ https://issues.oasis-open.org/browse/ODATA-997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=64330#comment-64330 ] Michael Pizzo commented on ODATA-997: ------------------------------------- Note: formula for a mod b eq a sub b mul floor(a div b) doesn't work for negative values of a or b. > Define modulo operator for non-integral numeric values > ------------------------------------------------------ > > Key: ODATA-997 > URL: https://issues.oasis-open.org/browse/ODATA-997 > Project: OASIS Open Data Protocol (OData) TC > Issue Type: Bug > Components: OData URL Conventions > Affects Versions: V4.0_ERRATA03 > Reporter: Ralf Handl > Fix For: V4.01_WD01, V4.0_ERRATA04 > > > The div operator is defined for numeric operands. > The mod operator is only defined for integral operands, but the section on the mod operator contains rules for decimal operands. > Clarify whether mod supports non-integral numeric operands, and how it is calculated, e.g. a mod b = a sub b mul floor(a div b) -- This message was sent by Atlassian JIRA (v6.2.2#6258)
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]