Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about using #

Status
Not open for further replies.

JoeMiller

IS-IT--Management
Apr 27, 2001
1,634
US
I'm trying to convert some code from Java to MS Access. The code I'm using as an example (came from a web page) includes a calculation where a number is multiplied by 1#, like this

[tt]
StartHr * 1#
[/tt]

What does the 1# do, just multiply it by one? Or does it ensure that it's a positive answer, or something completely different? I have no idea since I've never programmed Java but the original programmer did this before beginning his calculations as if he were getting his variables ready.. Any help is greatly appreciated..

Joe Miller
joe.miller@flotech.net
 
maybe you should try the MS Access page as well as this one...
I can find no reference to using the hash symbol in this way in Java, unless it is related to documenting the code in HTML using javadoc.

I am confused because I can't see why anyone would want to multiply anything by 1 explicitly. It achieves nothing. May be it is more specific to Access rather than Java.
 
Hi Joe,

Perhaps you would like to display the url where you found the java source code? I too don't know that Java use '#' as a keyword too.

Regards,
Leon If you need additional help, you can email to me at zaoliang@hotmail.com I don't guaranty that I will be able to solve your problems but I will try my best :)
 
I'll see if I can find the page again. Thanks for the help so far though!

Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top