Link | pk_math_percentage |

Author | Pier Kuipers |

Category | Math |

Version | 6.x |

License | Public Domain |

Posted | 10 Jan 2006 |

Updated | 16 Jan 2006 |

More by this author... |

tag returns the percentage of two numbers

Examples:

Without precision:

['[']pk_math_percentage: 5, 2[']'] =[pk_math_percentage: 5, 2]

['[']pk_math_percentage: 5.82, 2[']'] =[pk_math_percentage: 5.82, 2]

['[']pk_math_percentage: 5, 2.73[']'] =[pk_math_percentage: 5, 2.73]

['[']pk_math_percentage: 5.82, 2.73[']'] =[pk_math_percentage: 5.82, 2.73]

['[']pk_math_percentage: 13, 67[']'] =[pk_math_percentage: 13, 67]

With precision:

['[']pk_math_percentage: 5, 2, 1[']'] =[pk_math_percentage: 5, 2, 1]

['[']pk_math_percentage: 5.82, 2, 2[']'] =[pk_math_percentage: 5.82, 2, 2]

['[']pk_math_percentage: 5, 2.73, 3[']'] =[pk_math_percentage: 5, 2.73, 3]

['[']pk_math_percentage: 5.82, 2.73, 4[']'] =[pk_math_percentage: 5.82, 2.73, 4]

['[']pk_math_percentage: 13, 67, 5[']'] =[pk_math_percentage: 13, 67, 5]

Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.

(setformat: -precision=#precision); return the percentage return: #percentage; /define_tag; /If; ?>

No comments

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft