Getting the radius of a cylinder

I have a cylinder that I am using as a circle in 2D( It is rotated 90 degrees). I want to get the radius of that cylinder, How can I do that ?

I tried to get the Radius from the Capsule Collider but that is always fixed to the 0.5 even if i change the scaling . Here are some screenshots about it.

Thanks.


I figured out that transform.localScale.z(should be x if it was not rotated) of the cylinder actually gives the diameter ( radius *2 )