Cuts the number of digits to a standard balance dimension.


SYNTAX


public string FormatValue (double value)



PARAMETERS

value — double 

number to change format


RETURN

string String with incoming number cutted to standard balance dimension


EXAMPLE


In the following example, the number 1.2564654 will be outputted in clipped form to the output currency format of the selected account.
 
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using PTLRuntime.NETScript;

namespace AccountProperties
{
  public class AccountProperties : NETStrategy
  {
    public override void Init()
    {
      Account acc = Accounts.Current; //creation and initialization of the object ‘Account’.
      //outputting of all the 'Account' properties
      Print("FormatValue : \t"  + acc.FormatValue(1.2564654)+"\n");
    }        
  }
}