How to camelcase decibels?

Posted by Roddy on Stack Overflow See other posts from Stack Overflow or by Roddy
Published on 2010-05-24T21:07:50Z Indexed on 2010/05/24 21:11 UTC
Read the original article Hit count: 272

Filed under:
|

The standard abbreviations for decibels is "dB" (note the case!)

So, if I have a variable, holding (for instance) a maximum dB value, how best to name it?

  1. maxDbValue
  2. maxdBValue
  3. maxDecibelValue
  4. something else?

Each has disdvantages - #1 swaps the case of the unit, #2 doesn't clearly split max from dB, and #3 is verbose...

I think #1 feels best, but...???

© Stack Overflow or respective owner

Related posts about camelcasing

Related posts about decibel