I've used .51 so it inclues 0.5 but you change it if you need to
=IF(AND(D20-E20>-0.51,D20-E20<0.51),1,0)
<TABLE style="WIDTH: 48pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=64 border=0 x:str><COLGROUP><COL style="WIDTH: 48pt" width=64><TBODY><TR style="HEIGHT: 13.2pt" height=18><TD id=td_post_2625981 style="BORDER-RIGHT: #d4d0c8; BORDER-TOP: #d4d0c8; BORDER-LEFT: #d4d0c8; WIDTH: 48pt; BORDER-BOTTOM: #d4d0c8; HEIGHT: 13.2pt; BACKGROUND-COLOR: transparent" align=right width=64 height=18 x:num></TD></TR></TBODY></TABLE>