NumberSystem.MostSignificantDigit


Back to table

/*
Number-System
NumberSystem.MostSignificantDigit

[int MSD]=NumberSystem.MostSignificantDigit(real N, int systemBase);


Get the MSD of a real number $0 \ge N<1$ under the systemBase-based number system.

*/
//-------------------------------------------------------------------
// examples
[v]=NumberSystem.Radixes(15);
Print(v);
[v]=NumberSystem.RadixFromIndex(5,14);
Print(v);
[v]=NumberSystem.RadixToIndex("7",18);
Print(v);
[v]=NumberSystem.LeastSignificantDigit(100,19);
Print(v);
[v]=NumberSystem.PositiveIntegerToMantissa(100,19);
Print(v);
[v]=NumberSystem.MantissaToPositiveInteger(int(2,3,4),19);
Print(v);
[v]=NumberSystem.MostSignificantDigit( 0.1, 16);
Print(v);
[v]=NumberSystem.PositiveDecimalToMantissa(0.1,3,16);
Print(v);
[v]=NumberSystem.MantissaToPositiveDecimal(int(2,3,4),16);
Print(v);
[v]=NumberSystem.PositiveNumberToMantissa(2.4,4,16);
Print(v);
[v]=NumberSystem.MantissaToPositiveNumber(int(2,3,-1,1,2,3),16);
Print(v);

//-------------------------------------------------------------------
// result





MatchLogicFunction IsEqual IsSymmetricFunction IsSymmetricFunctionTo AndOr StringToBinaryNumber TwoComplement ToDiagram ToDualFunction ToTruthTable ToVariableInvertedFunction ToXORP Diagram Load logicvardef() long LeastSignificantDigit MantissaToPositiveInteger PositiveDecimalToMantissa PositiveIntegerToMantissa Or OrAnd Realization MaxSAT AutoAssignInputAndStateVariables Canonical CreateFromLogicFunctions RandomGenerate Substitute Zero

搜索本網站 :

 
Buy website traffic cheap