Print Page | Close Window

What happens when denominator is 0?

Printed From: BullCharts Forum
Category: BullCharts
Forum Name: BullScript
Forum Discription: Technical discussion related specifically to the BullScript programming language.
URL: http://www.bullcharts.com.au/forum/forum_posts.asp?TID=229
Printed Date: 05 Apr 2025 at 7:55pm
Software Version: Web Wiz Forums 9.69 - http://www.webwizforums.com


Topic: What happens when denominator is 0?
Posted By: Owen
Subject: What happens when denominator is 0?
Date Posted: 05 Jun 2005 at 10:08pm
If I write a formula in the form of x/y, and y turns out to be 0, how does Bullscript deal with situations like this?



Replies:
Posted By: Peter
Date Posted: 06 Jun 2005 at 10:09am
It evaluates to a special number, undefined.

This is so you can create formulas such as C/(H-L) without worrying about errors. The resulting plot will skip over any undefined points. ie, it will connect a line from the day before to the day after.




Print Page | Close Window

Bulletin Board Software by Web Wiz Forums® version 9.69 - http://www.webwizforums.com
Copyright ©2001-2010 Web Wiz - http://www.webwiz.co.uk