Ring Documentation Walkthrough #11 – Math

Welcome to the new Chapter, we’ll talk about the mathematical functions.

First of all, the list of the main functions are here, i won’t include them in the post because they’re easy to understand.

So, there’re 3 small functions left.

      1. Random()
        see random() #output: random number
        see random(100) #output: random number <= 100
        see random(10) #output: random number <= 10
        
      2. Unsigned()
        see unsigned(5, 10, '+') #output: 15
        see unsigned(5, 10, '*') #output: 50
      3. Decimals()
        see 5.12345 + decimals(3) #output: 5.123
        see 5.12345 + decimals(2) #output: 5.12
        

 


Yeah, This is all about the mathematical functions in Ring.

See you in the next chapter.

amrESSAM.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s