Song Parodies -> No IntToReal

Original Song Title:

"Run To The Hills"

Original Performer:

Iron Maiden

  
Parody Song Title:

"No IntToReal"

Parody Written by:

Phil Alexander

This is nearly a true story: I couldn't find the function in Delphi to convert an integer to a real (floating point) number, as Delphi doesn't let you typecast from ordinal to real types. And it is actually the case that the Int() function takes an integer and returns a real... which is kinda strange, if you ask me
My programs came
Across from C
Written again
Into Delphi
Numeric types
With hex appeal
From bytes and floats
To the (sur)reals
But unlike C
BASIC as well
You can't cast floats
To integral
There's no typecast
So what's the deal?
How do I turn an
Int to real?

Searching through help files and FAQs
Googling over the 'net
Looking for number conversion routines
How damn obscure does it get?
Found StrToIntDef, and IntToStr back
One thing is missing, a definite lack:

No IntToReal
It's truly vile
No IntToReal
So won't compile

Trunc() goes from real to integer type
Round() function's somewhat the same
StrToIntDef of formatted string?
Efficiently-coded it ain't
Fin'ly the help file gave me a hint:
The counterintuitive answer is "Int()"

Int() returns real
No wonder I'm stressed
Int() returns real
I should have guessed

Your Vote Counts

The parody authors spend a lot of time writing parodies for website. They appreciate feedback in the form of votes and comments. Please take some time to leave a comment below about this parody.

Place Your Vote
 Little   Lots
Meets the pacing
of the original: 
How Funny: 
Overall Score: 



In order for your vote to count, you need to hit this button.
 
Voting Results
Pacing: 4.5
 
How Funny: 4.5
 
Overall Rating: 4.8
 

Total Votes: 6
Voting Breakdown

The following represent how many people voted for each category.

 Pacing How Funny Overall Rating
 1   0
 
 0
 
 0
 
 
 2   0
 
 0
 
 0
 
 
 3   1
 
 1
 
 0
 
 
 4   1
 
 1
 
 1
 
 
 5   4
 
 4
 
 5
 
 
User Comments Follow...

Comments are subject to review, and can be removed by the administration of the site at any time and for any reason.

stuart mcarthur - September 14, 2005 - Report this comment
well, once I realised StrToIntDef had to be of formatted string, I would've just given up - keep fighting the good fight, Phil - 555
Adam Eccleshall - September 14, 2005 - Report this comment
DKTOS, but a very funny read. I've struggled with similar peculiarities myself recently, so I know exactly how you feel.
Phil Alexander - September 14, 2005 - Report this comment
Adam - there speaks the serious techie, who has a look at a parody called "No IntToReal" not even knowing the OS ;-)
Alex - October 05, 2006 - Report this comment
Was on a mission to find out the same answer, your parody just helped me a great deal. How counter-intuitive. Int returns a real? What is the world coming to.
DavidN - September 06, 2007 - Report this comment
Absolutely fantastic - I think all coders have been in this situation in some way, but I never thought I'd see a Maiden song converted to describe it :)

The author of the parody has authorized comments, and wants YOUR feedback.

Link To This Page

The address of this page is: http://www.amiright.com/parody/80s/ironmaiden37.shtml For help, see the examples of how to link to this page.

This is view # 185


The Number of the Beast album at Amazon.com

Powerslave album at Amazon.com

The Essential Iron Maiden album at Amazon.com

Piece of Mind album at Amazon.com

Seventh Son of a Seventh Son album at Amazon.com

Killers album at Amazon.com

Iron Maiden album at Amazon.com

Somewhere in Time album at Amazon.com

Live After Death album at Amazon.com

Dance of Death album at Amazon.com
 
 
Check out the official amIright MISHEARD LYRICS BOOK, now available!
Find Funny Stuff About a Band: