toupper

toupper — converts lower case letters to upper case.

Syntax

toupper (string|number)

		

Arguments

string

Any string.

number

Any number.

Returns

Strings with all letters converted to upper case. Numbers in integer form. Floating point numbers are truncated.

Description

This function converts any lower case letters in a string to upper case. It will also convert numbers to their base 10 integer representation.

Example

Gamma> toupper("Jack works for IBM.");
"JACK WORKS FOR IBM."
Gamma> toupper("UNICEF received $150.25.");
"UNICEF RECEIVED $150.25."
Gamma> toupper(5.3);
5
Gamma> toupper(0b0110);
6
Gamma>  
		

See Also

tolower