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

## Convert degrees to percent

Contributor
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
8 REPLIES 8
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
Ace
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.
Mostly AC 26 on Mac | Author of SelfGDL | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»
Contributor
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
Contributor
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
Ace
USe SPLITLEFT and with the comma as the text where to split.
Mostly AC 26 on Mac | Author of SelfGDL | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»
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
Contributor
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
Booster

If you are still looking? This is the correct string Formula. Meant to label Roof 'Pitch' "Auto Text":

CONCAT ( STR ( TAN ( {Property:Roof/Pitch} ) * 100; 2 ); "%" )

Latest solutions

Most liked posts