LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-08-2008, 09:30 AM   #1
man5237
LQ Newbie
 
Registered: Aug 2008
Posts: 12

Rep: Reputation: 0
Avogadro Number


Shell program to Check whether the given number is Avogadro number or not.


Please help me.


hanks in advance.
 
Old 10-08-2008, 10:29 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by man5237 View Post
Shell program to Check whether the given number is Avogadro number or not.

Please help me.

hanks in advance.
Try Google...first hit

http://linux.softpedia.com/get/Scien...ro-27689.shtml
 
Old 10-09-2008, 06:43 AM   #3
Nightfish
Member
 
Registered: Sep 2008
Posts: 36

Rep: Reputation: 15
Quote:
Originally Posted by TB0ne View Post
that's pretty advanced for all he was asking for.

although i am a bit confused about the question . the Avogadro number is a constant (6.02214179*10^23). you mean if it divides exactly by that number?

Fedora Development

Last edited by Nightfish; 10-22-2008 at 12:50 PM.
 
Old 10-09-2008, 08:15 AM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
This sounds like a homework exercise aimed at understanding the problems associated with testing for equality against a floating point number.
--- rod.
 
Old 10-09-2008, 09:06 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Yeah, see the GCD qn in this forum.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding constant (number) to a number in all rows skuz_ball Programming 2 05-20-2008 09:57 PM
Preserving number of links with 'cp'. ( preserve number of links ) Devyn Linux - General 7 09-16-2005 10:07 PM
what is a major number and a minor number ? Menestrel Linux - Newbie 2 10-11-2004 07:53 AM
how do you edit your virtual console number? (or VT number 3) jjorloff1 Linux - General 2 04-03-2004 07:21 PM
why there is a need for minor number and major number for monitor/keyboard in pc? tripathi Solaris / OpenSolaris 1 11-07-2003 09:36 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration