📄 is_even.pro
字号:
; $Id: is_even.pro,v 1.1.1.1 2002/03/12 11:53:47 riccardi Exp $
;
; A. Riccardi, Dipartimento di Astronomia di Firenze (Italy).
; e-mail address: riccardi@arcetri.astro.it
; Please, send me a message if you modify this code.
function is_even, value
;+
; NAME:
; IS_EVEN
;
; PURPOSE:
; IS_EVEN returns true (1B) if its argument is even.
; False (0B) otherwais.
;
; CATEGORY:
; Utility
;
; CALLING SEQUENCE:
; Result = IS_EVEN(Value)
;
; INPUTS:
; Value: scalar or array.
;
; OUTPUT:
; Result: byte scalar or array (same size of Value).
;
; MODIFICATION HISTORY:
; Written by: A. Riccardi; March, 1995.
;-
return, byte(not(value mod 2B)) mod 2B
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -