Collaborate forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Convert degrees to percent

_Salmon
Newcomer
Hi,
i'm trying to convert from degrees to percent using this formula: "percent = tan (angle) x 100"
why doesn`t work?
thanks
Since AC6

Win10pro / Intel Xeon E5-1650v4 / 128Gb DDR4 2400 MHz ECC REG / NVIDIA GeForce GTX 1080 / SSD Toshiba 512GB M.2
7 REPLIES 7

Barry Kelly
Moderator
If 0° = 0% and 90° = 100%, then isn't it just a straight relationship - nothing to do with TAN?

(angle * 100) / 90 should give you the %

i.e. (45° * 100) / 90 = 50


Barry.

One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

runxel
Mentor
Barry wrote:
If 0° = 0% and 90° = 100%, then isn't it just a straight relationship - nothing to do with TAN?
That is a common misconception, but in reality of course 100% inclination equals 45°.
(It's easier to remember, if you know, what x% inclination even means: after 100 meters going "flat", how many meters did the slope go up? (= imagine a right-angled triangle) If the answer is "100", then this triangle obviously has 45° angle)

So, if all you got is the angle, then the inclination in percent is indeed the TAN of the angle * 100.

What's not working on the other side is the additional "STRCALUNIT".
Just use
"TAN ( {the Property of incl.} ) * 100"
and you're good to go.
AC 24 [ger] | Win 10 | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

_Salmon
Newcomer
thanks for your help!
But which expression i have to use to publish the % result in a string?
The error is still there
Since AC6

Win10pro / Intel Xeon E5-1650v4 / 128Gb DDR4 2400 MHz ECC REG / NVIDIA GeForce GTX 1080 / SSD Toshiba 512GB M.2

_Salmon
Newcomer
Ok. Solved!
So now i'm trying to quit those decimals in the pipe diameter.
Any idea?
Since AC6

Win10pro / Intel Xeon E5-1650v4 / 128Gb DDR4 2400 MHz ECC REG / NVIDIA GeForce GTX 1080 / SSD Toshiba 512GB M.2

runxel
Mentor
USe SPLITLEFT and with the comma as the text where to split.
AC 24 [ger] | Win 10 | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

Barry Kelly
Moderator
runxel wrote:
Barry wrote:
If 0° = 0% and 90° = 100%, then isn't it just a straight relationship - nothing to do with TAN?
That is a common misconception, but in reality of course 100% inclination equals 45°.
(It's easier to remember, if you know, what x% inclination even means: after 100 meters going "flat", how many meters did the slope go up? (= imagine a right-angled triangle) If the answer is "100", then this triangle obviously has 45° angle)

So, if all you got is the angle, then the inclination in percent is indeed the TAN of the angle * 100.

Thanks runxel.
You can tell I don't use % for slopes.

Barry.

One of the forum moderators.
Versions 6.5 to 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

_Salmon
Newcomer
Done! Thanks Runxel

I started using archicad 21 years ago thanks to people like you.

I hope graphisoft takes into account the importance of the help service we need in the forum
Since AC6

Win10pro / Intel Xeon E5-1650v4 / 128Gb DDR4 2400 MHz ECC REG / NVIDIA GeForce GTX 1080 / SSD Toshiba 512GB M.2

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!