fometaPaloSebaka
Works like
fometaPalo, but puts a space in front of a number above 0.
A number below 0 has a "-" sign, which takes up room. A number above 0 has nothing, so written together they do not line up. fometaPaloSebaka puts a space where the sign would be, so that they do.
fometaPaloSebaka(123.45)is " 123.45" — note the leading spacefometaPaloSebaka(-123.45)is "-123.45"fometaPaloSebaka(123.45, 4)is " 0123.45"
The difference from fometaPaloLetshwao is exactly one thing: for a number above 0, fometaPaloLetshwao inserts "+" while fometaPaloSebaka inserts a space.
Given a list, it returns a list of strings.
Syntax
Section titled “Syntax”fometaPaloSebaka(boleng, kwaPele, kwaMorago)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
boleng | palo | The number to format. A list of numbers is also accepted. |
kwaPele (optional) | palo | How many digits to keep before the point. |
kwaMorago (optional) | palo | How many digits to keep after the point. |
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 400);
bokamorago(220);
tlogelaMothalo();
kwala(fometaPaloSebaka(42));
kwala(fometaPaloSebaka(-42));
kwala(fometaPaloSebaka(7, 3));
tlatsaMmala(150, 90, 200);
thalaKhutlonne(100, 160, 200, 80);
}