protected static Ptg calcRight( Ptg[] operands )
	{
		if( operands.length < 1 )
		{
			return new PtgErr( PtgErr.ERROR_VALUE );
		}
		String origstr = String.valueOf( operands[0].getValue() );
		if( origstr.equals( "" ) )
		{
			return new PtgStr( "" );
		}
		int numchars = operands[1].getIntVal();
		if( numchars > origstr.length() )
		{
			numchars = origstr.length();
		}
		if( numchars < 0 )
		{
			return new PtgErr( PtgErr.ERROR_VALUE );
		}
		String res = origstr.substring( origstr.length() - numchars );
		return new PtgStr( res );
	}