#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2010 Doug Hellmann. All rights reserved. # """Absolute value """ #end_pymotw_header import math print math.fabs(-1.1) print math.fabs(-0.0) print math.fabs(0.0) print math.fabs(1.1)