|
FastCalc | ||
FastCalc Result# = Expression | ||
Parameters: Result# = Expression |
||
Returns: NONE | ||
FastCalc is a special case command that allows you to by pass the expression resolve and directly feed a list of simple math operations into a cut down math engine. Unlike a normal expressions, FastCalc operations are perform linearly across the expression, from LEFT to RIGHT. No precedence is considered. Brackets are not supported, and the result is returned in the variable defined to accept it. Since FastCalc is a special case, it can only perform operation upon floating point variables. You can NOT use literal constants within the expression. FACTS: * FastCalc expressions can perform basic math operations such as +, -, /, * and assignments (=) and powers (^). * FastCalc expressions may include the following math functions Cos(),Sin(),Tan(),RND(),Sqrt(). FastCalc expression can not start with a function though. * FastCalc expressions can only operate upon floating point variables. Nothing else. * Speed Wise FastCalc is only normally only faster with expressions with at least 3 operations in them. * FastCalc has absolutely NO error trapping ! USE AT YOUR OWN RISK ! Mini Tutorial: The following is just some mock up examples to show how you could rearrange normal expressions for use with FastCalc
This example would output.
|
Related Info: | Cos | Float | Literals | Sin | Sqrt | Tan : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |