Results 1 to 7 of 7

Long variable returning unexpected result which appears to be only integer value

Threaded View

welchs101 Long variable returning... 07-05-2013, 09:30 AM
Norie Re: Long variable returning... 07-05-2013, 09:37 AM
welchs101 Re: Long variable returning... 07-05-2013, 09:46 AM
Norie Re: Long variable returning... 07-05-2013, 09:58 AM
welchs101 Re: Long variable returning... 07-05-2013, 10:27 AM
Norie Re: Long variable returning... 07-05-2013, 10:30 AM
welchs101 Re: Long variable returning... 07-05-2013, 10:59 AM
  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Long variable returning unexpected result which appears to be only integer value

    hi,

    Please find the enclosed macro.

    I have a long data type (called junk1....see enclosed macro).

    I assign the cell contents of B4 to this junk1 variable.

    But for some reason the value sent to junk1 is 1..............when i expected it to be 0.893674293405114.

    If i dont define junk1 as a long data type it works............

    i am kinda confused..........i want junk1 to hold the number 0.893674293405114 and not the value of 1

    any ideas on whats going on?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1