Debian Codegraph @

subprojects/meson-docs/docs/yaml/elementary/int.yml

raw
1 name: int
2 long_name: Integer
3 description: All integer numbers. See [Numbers](Syntax.md#numbers) for more information.
4
5 methods:
6 - name: is_even
7 returns: bool
8 description: Returns true if the number is even.
9
10 - name: is_odd
11 returns: bool
12 description: Returns true if the number is odd
13
14 - name: to_string
15 returns: str
16 description: Returns the value of the number as a string.
17
18 optargs:
19 fill:
20 type: int
21 description: |
22 Left fill the string with zeros until it reaches the length
23 specified by this argument. A leading negative sign counts towards
24 the length, and is handled by inserting the padding after the `-`
25 character rather than before. The original string is returned if the
26 value provided is less than or equal to the former's length.
27
28