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
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
|
| ||||||||||||||||||||||||||||||||||||
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.
well, once I realised StrToIntDef had to be of formatted string, I would've just given up - keep fighting the good fight, Phil - 555
DKTOS, but a very funny read. I've struggled with similar peculiarities myself recently, so I know exactly how you feel.
Adam - there speaks the serious techie, who has a look at a parody called "No IntToReal" not even knowing the OS ;-)
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.
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










