standard.C.casts.uint16

uint16 is available since version 1.0.

Prototype:

number uint16(number)

Description:

Gets the 16 bits unsigned integer value of a number.

Return value:

Returns the 16 bits unsigned integer value of a number.

Example
import standard.C.casts

class Main {
     function Main() {
          var decimal_number=-12.345;
          var a_number=75000;

          echo "The 16 bit representation of " + decimal_number + " is ";
          echo uint16(decimal_number);
          echo "\n";

          echo "The 16 bit representation of " + a_number + " is ";
          echo uint16(a_number);
          echo "\n";
          
     }
}
 

Results 
The 16 bit representation of -12.345000000000001 is 65524
The 16 bit representation of 75000 is 9464