Re: sprintf

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Wed Nov 02 2011 - 06:41:29 MDT

vals = sprintf("%3.0f",n) + " " + sprintf("%3.0f",m) + " " + nlc4 + nlc5

On 11/1/11 9:15 PM, cnl88 wrote:
> title = " i j API I "
> vals = sprintf("%3.0f",n) + " " + sprintf("%3.0f",m) + " " +
> sprintf("%3.0f",nlc4) + sprintf("%s",nlc5)
> n and m is the type of float and nlc5 is a string
> Dear sir or Madam:
> I want to write the float and the string data in one file but there is
> something wrong with it .I do not know how to write the type of string
> and float together.
> The command type of sting is "%s" or "%x" or "%3x" ??? .hope for your
> help! thank you very much!
>
>
> ------------------------------------------------------------------------
> 网易公开课推出哈佛最受欢迎《幸福》课程,帮您修满幸福学分!
> <http://v.163.com/special/positivepsychology/?from=mailfooter>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Nov 2 06:41:34 2011

This archive was generated by hypermail 2.1.8 : Fri Nov 04 2011 - 08:43:41 MDT