Aller au contenu

Renvoie le logarithme en base 2 de x. Si x est inférieur ou égal à 0.0E0, la fonction renvoie NULL.

func.log2( <x> )
func.log2(65536)
┌──────────────────┐
│ func.log2(65536) │
├──────────────────┤
│ 16 │
└──────────────────┘
LOG2( <x> )
SELECT LOG2(65536);
┌─────────────┐
│ log2(65536) │
├─────────────┤
│ 16 │
└─────────────┘