> For the complete documentation index, see [llms.txt](https://vrs-guidebook-2nd-edition.gitbook.io/vrs-guidebook-2nd-edition/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vrs-guidebook-2nd-edition.gitbook.io/vrs-guidebook-2nd-edition/programming/blocks/miscellaneous.md).

# Miscellaneous

The Miscellaneous section in FTC block programming serves as a toolbox for various functions that don't neatly fit into other categories. The blocks range from comment, format numbers, to how to handle null value.

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcyuYKp4wTs4U9ljc34Ck6jzpjNMXItbaEFagPg1Bnkx2zBIVwe_glHXkPYBcnb8yqsAfAdQu3vEKrYie45Hs-Ier4NWPVY6hIxLy0o45tPxV_bjk_6OFo4WshLYwKzjXIDHQTMRUWd-7bPCBaKKKtS1fPH?key=hRw9bBhBfp1lHBJ7rUAI2Q)

**Comment**

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXdNEg5-8bXf_DaFLqNlyRLrfJ0YvpTV7934vO_7TgYBgdZxkW1g55JwTJ5EKQYxQFLpw9TyKwziT7OtbN5lNdLNY76_h7-JUqiwpH1sZBhWcAeJWs8etZzinCPazI9EeKdpBEoSz7bBxNHA82SLbxE9njO5?key=hRw9bBhBfp1lHBJ7rUAI2Q)

Comments serve as explanatory notes within your code. They have no impact on the Robot, no on the telemetry.

**roundDecimal**

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcPQenyy2wNQh08cIaJoUU3ZIo483Z1iPHLJuCUhv9Nr1iu4XG82YqGW5Cdl9VTToIVBi6t6XhzS4N0NEPI9OGWZVfMuWXwn6bT8fSdwwOgbvZn8ooHoCpWGOg6o_yufx4FQ80vw2vOD-KbzyPrwHLfylIl?key=hRw9bBhBfp1lHBJ7rUAI2Q)

Returns a number value of the given number rounded to the given precision. In the example, the block returns 3.14.

Key points:

* Returns a numeric value.

**formatNumber**

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXdT5v3hxYYZXlVyQANhvxh0b1EpYmWyQIV5G0BnRQXywFgKPJxE5zwdFweXW7ArkrS3TOSrEK4VHMHrlxG0xc27xqh1em6DDcLkuNIswdi6RgjQWP7gtqzv86NgUUBmPWQdsHrW1zidjJzhWHz5D9M7bcni?key=hRw9bBhBfp1lHBJ7rUAI2Q)

Rounds a number to a certain precision and returns the rounded number as text. In the example, the block returns text “3.14”.

Key points:

* Returns a text, instead of a numeric value.
* Padded with 0 if necessary. For example, when 3.14 is rounded to precision of 3, “3.140” is returned.

**null**

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcbsolPmfVLBk2wu5qggRRJF-aO1_6DMjwEy-0HwkrRNX4QVHG17hF6FIVMdQJOdZ-IMxmaMvWeASyHVruQeT_Cux0Iqv-dl_iFZZ6-3rvfS3EyO424r9WT4HCxexKCDwHmcegTfFGNGgMXS1MyQIA2q-Bu?key=hRw9bBhBfp1lHBJ7rUAI2Q)

null. It represents the absence of a value or object.

**isNull**

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXf_WmCcox5vh9BvKFwR6KZfIZB_j0IkIm3Iui-V4dD7M_pLMmgo0nAYfGKF7JKInl3mi_4-2821LtCXS-Xrn9MEEzHpWHdxdHgROZTHcwEXk_vw68i-lhNjFufoq2ctnuggjqkrYVl168nSgkxCcd2blNDG?key=hRw9bBhBfp1lHBJ7rUAI2Q)

Returns true if the given value is null. Returns false if the given value is not null.

**isNotNull**

![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfNtBnwlDE0x_BQUJ93rcWIBDE46PuXxqrbSoyOYfIbR26l2azLTpC98nggk89vgF21QgwmAfYiZVP2NviU7g5DFEPbqmd5KW_ATPiEJw0_M6BWbz9aIYPt3cLp1hVVHBUjEFN42EYTod4IAKexsV4kjtg?key=hRw9bBhBfp1lHBJ7rUAI2Q)

Returns true if the given value is not null. Returns false if the given value is null.
