mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
[Frequency Library] Added hz_to_mhz function to the library as its used a lot in Cloudlog
This commit is contained in:
@@ -154,5 +154,11 @@ class Frequency {
|
||||
}
|
||||
return $Band;
|
||||
}
|
||||
|
||||
// converts a frequency in Hz to MHz output
|
||||
function hz_to_mhz($frequency)
|
||||
{
|
||||
return number_format (($frequency / 1000 / 1000), 3) . " MHz";
|
||||
}
|
||||
}
|
||||
/* End of file Frequency.php */
|
||||
|
||||
Reference in New Issue
Block a user