标签:ted pre power float echo read binary ati root
#! /bin/bash echo -n input float: read num echo power of the operation: echo $num^2 |bc echo converted to binary echo "obase=2;$num" |bc
[root@lenny Desktop]# ./zhuanhuan.sh input float:3.1415926 power of the operation: 9.8696040 converted to binary 11.001001000011111101101001
标签:ted pre power float echo read binary ati root
原文地址:http://www.cnblogs.com/leonarcohen/p/6155415.html