Results 1 to 19 of 19

Thread: simple div operator question

Hybrid View

  1. #1
    Addicted Member
    Join Date
    Jan 2006
    Location
    Montreal, Canada
    Posts
    152

    Re: simple div operator question

    If div is a function or operator then you probably use Excel 2010 or 2011.
    Unfortunately we do not have this update yet

    If
    e.g. 50 div 7, it will give the highest common factor of the number(integer),
    so in this case it would be 7
    then div = divide
    this code will do the tricks

    VB Code:
    1. dim randomvalue as integer
    2. randomvalue = mynumber /1000

    since randomvalue is an INTEGER
    e.g. 50/7 = 7.XXXXX

    INTEGER do not take decimal so will equal 7

  2. #2
    Fanatic Member VBAhack's Avatar
    Join Date
    Dec 2004
    Location
    Sector 000
    Posts
    617

    Re: simple div operator question

    I don't believe the listing is visual basic code. It is psuedo code to illustrate an algorithm. Look at page 4 of this:

    http://www.ocr.org.uk/OCR/WebSite/Da...Level93039.pdf

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width