Moonsoft Software Solutions

Can CB do scientific calculation?

Started 13 Sep 2017 · 2 replies

  1. wuyidebh
    It seems that CB dosn't support some math function,such as sin() ,asin(), etc. If I want some scientific calculation use, how to do?
  2. Moonsoft support
    Hi,
    yes, you can use any math function. Here the list of php math functions, all of them are available:

    http://php.net/manual/en/function.sin.php

    so if you write at your code for ex

    $result=sin($yourinput);

    being 'yourinput' one of your fields variable names, it will work. Please double check you have not any other syntax error, like the ; at the end of the line for ex. Let us know if you need further help.

    Regards
  3. wuyidebh
    Thank you.

Still stuck?

Customers with an active license can open a support ticket.

Log in to open a ticket