Further Market
  • Essentials

    • Foreword
    • What is FM Script ?
    • The philosophy and benefits of FmScript
    • What you will learn
  • Recall

    • Internet: who? what? What is that?
    • Further market and FMScript
    • The compiler
  • Download
  • Getting started

    • Installation
    • Create a business account
    • Connect to the PC application
    • Create your first applet
    • Create your first web applet
    • Compiler view
  • Basics

    • basic rules
    • Reserved keywords
    • The Syntax
    • Coding Style
    • comments
    • Variables, constants, and data types
    • Convertion of types
    • Conditions and loops
  • Functions

    • Create a Menu
    • Create input field (Input2)
    • Create a QR Code
    • Scan a QR Code
    • Strings functions
    • Array functions
    • Date Time functions
    • Mathematics functions
    • JSON functions
    • XML functions
    • Call Http request
    • Manipulate Sessions
    • Financial functions
    • Notifications
    • Bleutooth Printer
  • Demos

    • Advanced Inputs
    • Call http Request
    • loops and conditions
    • Menu inputs
    • Array items count
    • Simpe for
    • simple select count Sql Query
    • Date and Time picker form
    • Get credit balance
    • is valid city
    • user info from phone number
    • get country and city from form
    • simple ussd link switch
    • charge user credit
    • simple message box
    • user entry code
    • get users relations
    • my external payements collected
    • call google Map
    • in App direct publish
    • Geo location
    • Charts
    • menu with hints
    • call system Messenger
    • user start code
    • In call Gallery
    • credit card payment Request
    • MTN CMR Airtime Product Subscription
    • MenuItemAddContacts
    • AJax and FM Input
    • Input2
    • MenuItemAddRichMedias
    • MenuItemAddTagsItems2
    • BlinBlin Menu + javascript
    • GENERAL ALERT MESSAGE WITH JSON OPTIONS
    • Barcode
  • databases

    • CRM
    • External Payments
    • Bills
    • Sales
    • Games
    • Applets
    • Payments Gateway
    • Manipulate Select Queries
  • APIs

    • Further Markey Pay button integration
    • Mobile Money cash collector
    • Bill Api
    • API PUBLISH PRODUCT
    • Sale Api
    • SMS Api
  • Advanced

    • Actions scheduler
    • Events settings
  • USSD CAMEROON

Mathematics functions

  • ABS
  • Ceil
  • Pred
  • Random
  • ROUND
  • StrToFloat
  • StrToInt

ABS

Return the abolute value of an number(Ceilling Value)

Signature
                
ABS(Value : Double)
                
            
Demo
                
VAR Result: String;
VAR absVal: Double;

//---Absolute Value
absVal := -7;
absVal := ABS(absVal);

Result := FloatToStr(absVal);
Exit;
                
            

It will returns the absolute value of -7 that is 7


Ceil

returns the value by excess of a given Double value

Signature
                
Ceil(Value : Double)
                
            
Demo
                
VAR Result: String;
VAR absVal: Double;

//---Absolute Value
absVal := 7.23;
absVal := Ceil(absVal);

Result := FloatToStr(absVal);
Exit;
                
            

returns 8



Pred

Return a decremented by 1 Integer value of the paramter value

Signature
                
Pred(Value : Integer)
                
            
Demo
                
VAR Result : Integer;
VAR i      : Integer;
i := PRED(20);

ShowMessage(IntToStr(i));
//expected val = 19
Exit;
                
            


Random

Return a random number between 0 and ARange

Signature
                
Random(ARange : Integer)
                
            
Demo
                
VAR Result : String;
VAR i      : Integer;

//---expected val is between 0 and 100
i := Random(100);

ShowMessage(IntToStr(i));
Exit;
                
            


ROUND

Return Rounded value of AValue

Signature
                
ROUND(AValue : Double)
                
            
Demo
                
VAR Result : String;
VAR i      : Integer;

//---expected value = 4
i := ROUND(4.5);

ShowMessage(IntToStr(i));
Exit;
                
            


StrToFloat

Convert a String Value to a Float Value

Signature
                
StrToFloat(AString : String);
                
            
Demo
                
VAR Result : String;
VAR i      : Double;

//---expected value = 4
i := StrToFloat('4.5');

Exit;
                
            


StrToInt

Convert a String Value to an Integer Value

Signature
                
StrToInt(AString : String);
                
            
Demo
                
VAR Result : String;
VAR i      : Integer;

//---expected value = 4
i := strToInt('12');
i := i * 3 ;

ShowMessage(IntToStr(i));
Exit;
                
            
Date time functions
json functions


Our Partners

Support
      Telephone : (+237) 675979899 / 676009100
      Email : fm_support@f-m.fm
      P.O Box : 774 BAFOUSSAM
Available On

no
no

Further Market Inc
Copyright © 2012-2021.