Consider :
Grid@Partition[
Text[Style[ToString[Range[0, 180, 22.5][[#]]] <> "\[Degree]", Bold, 16,
GrayLevel[(8 - #)/10]]] & /@ Range[8], 2, 1]

How can I get rid of the dot following the Integers ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If a number becomes an integer when you rationalize it, use the integer; otherwise stick with the original number. This is achieved by a simple function,
f[x]:Testing…
You can’t just
Rationalizeall the values, as the following makes clear:To see how it works in your case, just insert
(f/@)into your code to reformat the values output fromRange:So