Rhino.DToA.StripTrailingZeroes C# (CSharp) Method

StripTrailingZeroes() private static method

private static StripTrailingZeroes ( StringBuilder buf ) : void
buf StringBuilder
return void
		private static void StripTrailingZeroes(StringBuilder buf)
		{
			//      while(*--s == '0') ;
			//      s++;
			int bl = buf.Length;
			while (bl-- > 0 && buf[bl] == '0')
			{
			}
			// empty
			buf.Length = bl + 1;
		}