Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I'm trying to describe an algorithm in pseudocode where I've used the integer division operator. In VB.NET, the language I'm using, the operator used is "\", but I don't know if this is unambiguous to the reader that this symbol means "integer division". I've also seen "div" used. I can't use TeX or anything complicated format-wise. Is there an accepted symbol or notation for integer division operator, so that it very clearly means "integer division" and not regular division?

share|improve this question
1  
In math, $\setminus$ usually refers to set difference (LaTeX: \setminus), but if you mention it in the context of integers or natural numbers, it should be clear what you mean. To be absolutely sure, just write it as a remark ("Where I use \ to denote integer division")... –  AlexR Mar 13 at 21:32
    
div an mod maybe –  Max Mar 13 at 21:37
    
@AlexR, if you put that as an answer I'll accept it. –  Leo King Mar 13 at 21:52
    
@LeoKing done that. –  AlexR Mar 14 at 13:54

1 Answer 1

up vote 1 down vote accepted

In math, $\setminus$ usually refers to set difference (LaTeX: \setminus), but if you mention it in the context of integers or natural numbers, it should be clear what you mean. To be absolutely sure, just write it as a remark ("Where I use \ to denote integer division")

Another common notation, especially in the context of ${\rm mod}$ as the complementary operation, $\mathop{\rm div}$ is widely used.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.