Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

Overflow Run-time error 6

Last post 11 Dec 2003, 11:01 AM by marekcz. 0 replies.
Sort Posts: Previous Next
  •  11 Dec 2003, 11:01 AM 4587

    Overflow Run-time error 6

    Hi,

    I would like to get the rest of division very big number with 30 digits
    for example 116022440020551020156789252100

    - I don't want to represent this numer by any approximation in the form 1.16022440020551E+29
    - I received Run-time error '6' Overflow

    Code:

    Dim rest As Long

    rest = 1.16022440020551E+29 Mod 97

    If I change

    rest = 1.16022440020551E+29 - Int(1.16022440020551E+29 /97) *97

    always the result is equal 0
View as RSS news feed in XML