/// <summary> /// Lvs to U long. /// </summary> /// <returns>The to U long.</returns> /// <param name="lvalue">Lvalue.</param> private static ulong LvToULong(Long_v lvalue) { if (lvalue.e == 1) { return((ulong)lvalue.m * devider); } return((ulong)lvalue.m); }
/// <summary> /// Sets the U long. /// </summary> /// <param name="key">Key.</param> /// <param name="value">Value.</param> public static void SetULong(string key, ulong value) { Long_v lv = LongToLongV(value); string m_key = "__m__" + key; string e_key = "__e__" + key; SetFloat(m_key, lv.m); SetInt(e_key, lv.e); }