>>>>> "RC" == Rob Coops <rco...@gmail.com> writes:
RC> On Tue, Apr 27, 2010 at 9:16 AM, Uri Guttman <u...@stemsystems.com> wrote: RC> so you can't tell the difference without getting into the guts RC> with xs or some special code. you mention a receiving program RC> which may make a difference but again perl won't know or RC> care. there may be more code than you are showing which makes RC> a difference between the two but basic perl doesn't know or RC> care. RC> I completely agree perl couldn't care less if you return 0 or 0.00 RC> it will simply interpet it as a 0, but the recieving mainframe RC> system gets all warm and fuzzy when you send it 0.00 and a bit RC> unhappy when it recieves a lone 0. Since the whole point of the RC> round routine is to return a whole number with two digits behind RC> the dot I figured it would be better to have it always return just RC> that even if the total value ends up being 0. It saves me from RC> having to format the values later on as i am now 100% certain that RC> i will always recieve a hole number with two digits after the dot. RC> (And that, boys and girls is why adding comments to your code is a RC> good idea it helps explain these kinds of things) :D Sorry for RC> that I should have at least explained that a bit better in a RC> simple comment behind te return or something along those lines. you have never specified any IPC between perl and the mainframe. all you showed was returning 0.00 which is just 0 in perl. perl won't format it as you wish without doing something yourself. you are not telling the whole story which is a problem. uri -- Uri Guttman ------ u...@stemsystems.com -------- http://www.sysarch.com -- ----- Perl Code Review , Architecture, Development, Training, Support ------ --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com --------- -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/