Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Data type to hold decimals

i have variable x which can hold longs

what type do i need to hold a number which may be greater than 65536 but
also have two decimal places?

is there a similar type conversion for this type similarly as
=cint(...)
and
=clng(....)

Probably an easy q but dont know
thanks
james


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Data type to hold decimals

Hi James,

i have variable x which can hold longs

what type do i need to hold a number which may be greater than 65536 but
also have two decimal places?


Look at Double Data Type and Single Data Type in VBA help.

is there a similar type conversion for this type similarly as
=cint(...)
and
=clng(....)


Look for CDbl and CSgl in the VBA help page: 'Type Conversion Functions'



---
Regards,
Norman



"James Cornthwaite" wrote in message
...
i have variable x which can hold longs

what type do i need to hold a number which may be greater than 65536 but
also have two decimal places?

is there a similar type conversion for this type similarly as
=cint(...)
and
=clng(....)

Probably an easy q but dont know
thanks
james



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Data type to hold decimals

thanks very much

"Norman Jones" wrote in message
...
Hi James,

i have variable x which can hold longs

what type do i need to hold a number which may be greater than 65536 but
also have two decimal places?


Look at Double Data Type and Single Data Type in VBA help.

is there a similar type conversion for this type similarly as
=cint(...)
and
=clng(....)


Look for CDbl and CSgl in the VBA help page: 'Type Conversion Functions'



---
Regards,
Norman



"James Cornthwaite" wrote in message
...
i have variable x which can hold longs

what type do i need to hold a number which may be greater than 65536 but
also have two decimal places?

is there a similar type conversion for this type similarly as
=cint(...)
and
=clng(....)

Probably an easy q but dont know
thanks
james





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
I can't figure out how to hold chart references firm when inserting data Live Long & Prosper Excel Discussion (Misc queries) 3 October 22nd 09 07:56 PM
Hold conditional formatting when sorting filtered data Pyitty Excel Discussion (Misc queries) 1 July 6th 09 09:09 AM
How much data can Excel hold. BLopes Excel Discussion (Misc queries) 1 June 20th 06 12:15 AM
Multiple Userform Hold Data to edit bg18461[_8_] Excel Programming 2 June 4th 04 03:10 AM
insert to hold data Gav[_2_] Excel Programming 1 April 30th 04 07:04 AM


All times are GMT +1. The time now is 08:19 PM.

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

About Us

"It's about Microsoft Excel"