Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Function that accepts and returns a decimal, is it possible?

Hello all,

I currently have a function that looks similar to the following


Function BitWOR(var1 as Long, var2 as Long) As Long

BitWOR = var1 Xor var2

End Function


This works fine in most cases, but there are times when I need to
pass in a larger number when calculating a CRC32 table. I thought I
would be able to use the Decimal data type, but according to the
documentation that I read the Decimal really isn't its own data type
(but a child?) of the Variant data type.

I attempting using the Variant data type, but that would just cause
another problems when that value was passed to another built in
functions (e.g. POWER() I think). Is there a way to be able to pass
in and return integer values larger than Long? Is there a way to use
unsigned data types? Thanks.

Mark

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
RANDBETWEEN function returns #NAME? Dave F[_2_] Excel Discussion (Misc queries) 4 July 31st 07 06:36 PM
How to auto-return to next cell that accepts data. [email protected] Excel Worksheet Functions 4 April 21st 07 03:44 AM
INT Function Returns 1 bhavesh Excel Worksheet Functions 3 December 29th 06 02:48 PM
number returns only two decimal places after I change from text quale Excel Discussion (Misc queries) 5 December 8th 05 08:22 PM
cell that accepts a whole number or five place deciaml crck_whr Excel Worksheet Functions 2 November 12th 04 04:14 PM


All times are GMT +1. The time now is 07:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"