You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Dew.Math.Units Namespace > Classes > Math387 Class > Math387 Methods > Math387.SmallestExp2 Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Math387.SmallestExp2 Method

Closest power of 2 to n.

Syntax
C#
Visual Basic
public static int SmallestExp2(int n);

the first smaller or equal power of two, if n is not power of two.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!