Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15172

The Dude • Re: The Dude math functions

$
0
0
I haven't, but there is no log function AFAIK.

Another idea, not simple... but you can create an array with the dBm values inside, then use use array_element with the mW (or some multiple of mW) to fetch the pre-converted dBm value. Essentially a lookup table, using array()/array_element()functions.

e.g.
Code:
mW to dBm conversion tablePower (mW)Power (dBm)0+ mW-∞ dBm0.01 mW-20 dBm0.1 mW-10 dBm1 mW0 dBm2 mW3.0103 dBm3 mW4.7712 dBm4 mW6.0206 dBm5 mW6.9897 dBm6 mW7.7815 dBm7 mW8.4510 dBm8 mW9.0309 dBm 9 mW9.5424 dBm10 mW10 dBm100 mW20 dBm1000 mW30 dBm10000 mW40 dBm 100000 mW50 dBm 1000000 mW60 dBm 10000000 mW70 dBm100000000 mW80 dBm1000000000 mW90 dBm 10000000000 mW100 dBm

Statistics: Posted by Amm0 — Fri Dec 29, 2023 5:50 pm



Viewing all articles
Browse latest Browse all 15172

Trending Articles