Float

Float #

Literal Specific Methods #

plz_f() #

Returns FLOAT

Returns self

plz_i() #

Returns INTEGER

Returns a integer representation of the float.

🚀 > a = 123.456
=> 123.456
🚀 > a.plz_i()
=> "123"

plz_s() #

Returns STRING

Returns a string representation of the float.

🚀 > a = 123.456
=> 123.456
🚀 > a.plz_s()
=> "123.456"

Generic Literal Methods #

methods() #

Returns ARRAY

Returns an array of all supported methods names.

🚀 > "test".methods()
=> [count, downcase, find, reverse!, split, lines, upcase!, strip!, downcase!, size, plz_i, replace, reverse, strip, upcase]

type() #

Returns STRING

Returns the type of the object.

🚀 > "test".type()
=> "STRING"

wat() #

Returns STRING

Returns the supported methods with usage information.

🚀 > true.wat()
=> BOOLEAN supports the following methods:
				plz_s()