Skip to content

Latest commit

 

History

History
58 lines (34 loc) · 769 Bytes

Number.md

File metadata and controls

58 lines (34 loc) · 769 Bytes

JW3B\Helpful\Number

Methods

Name Description
numberToWord Convert a number to its word representation.
sq Calculate the price per square foot.

Number::numberToWord

Description

public static numberToWord (int $number)

Convert a number to its word representation.

Parameters

  • (int) $number : The number to convert. Return Values

string

The word representation.


Number::sq

Description

public static sq (float $w, float $h, float $p)

Calculate the price per square foot.

Parameters

  • (float) $w : Width.* (float) $h : Height.* (float) $p : Price. Return Values

string

The calculated price.