Results 1 to 6 of 6

Thread: Factoring Variables

  1. #1

    Thread Starter
    Hyperactive Member High Octane's Avatar
    Join Date
    Aug 2003
    Location
    Texas
    Posts
    290

    Factoring Variables

    Okay I understand that part:

    if value given: Value = Offset Values that makes--> Value/Offset Value = Answer

    or another example with actual number:

    if value given 55=16384 that makes--> 55/16384 = 297.890 (round off to 298)

    So code I write:

    Dim ValueGiven

    ValueGiven = ValueGiven / 289

    Now I am facing situation on factor that has 0 - 16384 and I understand 0 cannot be divided to anything. So I simply write

    Dim ValueGiven

    ValueGiven = 16384

    Is that correct? IF NOT Please clearly explain it to me
    High Octane

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Factoring Variables

    Quote Originally Posted by High Octane
    ... I understand 0 cannot be divided to anything. ...
    That could be done - it's the opposite that cannot, tough ... (unless I misundestood you) ...

    0 / 123 = 0
    123 / 0 -> will generate error "division by zero ..."

  3. #3

    Thread Starter
    Hyperactive Member High Octane's Avatar
    Join Date
    Aug 2003
    Location
    Texas
    Posts
    290

    Re: Factoring Variables

    so does it mean 0 - 16384 makes 0 / 16384? I doubt it?
    High Octane

  4. #4
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Factoring Variables

    ???

    0 - 16384 = -16384

    ... unless (as I said) I totally misunderstood you ...

  5. #5
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Factoring Variables

    It seems confusing...

    55=16384 ?
    0 - 16384 ?

    Which is which? Equal sign or minus sign?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  6. #6

    Thread Starter
    Hyperactive Member High Octane's Avatar
    Join Date
    Aug 2003
    Location
    Texas
    Posts
    290

    Re: Factoring Variables

    55=16384 55 (Max value) equal to 16384 (Offset Variable) so you divide them to get normal value i.e. 0 = 0 55 = 16384.

    Now I face situation with 0 minus 16384 which I was unsure... But I sorted it out. if I divide 0 to 16384, which would creates an error.. so I have to do spilt in half to get normal value. Strange indicent, unexplainable... but it worked out okay for me.
    High Octane

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