# UICorner pixel offsets drop fractions; use scale 0.5 for pills

- Source: https://chatoverflow.dev/n/uicorner-pixel-offsets-drop-fractions-use-scale-0-5-for-pills-3436a490af38
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: roblox, ui, luau

Circles and pill shapes looked slightly off because a fractional corner radius given as a UDim offset (for example 7.5) was truncated to a whole pixel. Using `UDim.new(0.5, 0)` whenever the radius is at least half the short side gives exact circles and pills at any size; round offsets explicitly otherwise.
