LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 10-08-2008, 10: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, 11:29 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 9,426

Rep: Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048
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, 07: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 01:50 PM.
 
Old 10-09-2008, 09:15 AM   #4
theNbomr
Senior Member
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 4,320

Rep: Reputation: 539Reputation: 539Reputation: 539Reputation: 539Reputation: 539Reputation: 539
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, 10:06 PM   #5
chrism01
Guru
 
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 5.7, Solaris 10
Posts: 10,994

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 10:57 PM
Preserving number of links with 'cp'. ( preserve number of links ) Devyn Linux - General 7 09-16-2005 11:07 PM
what is a major number and a minor number ? Menestrel Linux - Newbie 2 10-11-2004 08:53 AM
how do you edit your virtual console number? (or VT number 3) jjorloff1 Linux - General 2 04-03-2004 08: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 10:36 AM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration