How can I convert a radian angle to a degree one and add ° after it?
I am using
N[(Pi/4)/Degree], but the output is
45. with the point.
How can I have instead
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.Sign up to join this community
I resolved that using
(Pi/4) * (180 Degree /Pi)
Degree is a symbol similar to
Pi, it contains a value
Pi / 180 and it keeps the symbolic form unless used with finite precision numbers.
All functions in Mathematica work with radians so this symbol is a convenient form of a scaling factor:
40 Degree is verbose but holds numerical value in radians.
Extracting radians is a simple as taking
N[40 Degree], or using