tixGetInt(n)

πŸ“¦ version 8.4.3, in opensuse-leap 16.0

πŸ’– tixGetInt(n) πŸ’–

okay so bestie, welcome to the Tix Built-In Commands corner of the manual β€” this whole page is about tixGetInt, and it's literally here to get the integer value of a string. no cap. ✨


🌸 NAME 🌸

tixGetInt β€” get the integer value of a string. that's the assignment, and it ate. πŸ’…

✨ SYNOPSIS ✨

tixGetInt ?-nocomplain? ?-trunc? string

πŸ’… DESCRIPTION πŸ’…

tixGetInt converts any number into an integer number. by default, it rounds the number to the nearest integer. cute, simple, iconic.

when the -trunc option is specified, the number is truncated instead of rounded. so if rounding isn't the vibe, -trunc is your girl. 🫢

  • -trunc β€” when specified, the number is truncated instead of rounded. that's it, that's the flag. ✨
  • -nocomplain β€” when the string is not a valid TCL numerical value and this option is specified, tixGetInt will return "0". otherwise it will generate an error. so it's giving "no complaints, just zero," but only when you ask for it. 😭

πŸŽ€ KEYWORDS πŸŽ€

Tix(n)


that's the page, bestie! brought to you by Tix 4.0 and tixGetInt(n) β€” periodt. πŸ’–βœ¨

πŸ“¦ where this page comes from