乘方…乘方…
galeki
posted @ 2008年12月14日 05:51
in 其他
, 6328 阅读
昨晚拿 C 写小数转字符串的函数,写完测试发现结果怎么都是不对,总共就那么两行,盯着看了半天也不知道错在哪里。
最后的最后,才发现……
因为函数中要用到 10 的 n 次方,结果我赫然写了个:
( 10 ^ n )
…… 彻底无语。
过了半晌才反应过来,这个 ^ 似乎是异或的意思,C 标准库里好像有个专门算乘方的函数 pow( x, y )。唉,全忘了……
这大概就是脚本语言后遗症吧,不过 Ruby 中的乘方是 x ** y 啊,这个习惯是哪里来的呢? 难道是 Excel……?
2008年12月14日 06:59
呃.....
好像VB里面成方是这样的......
高中数学里也有....
没记错的话...
2008年12月14日 07:15
其实在古老的 COBOL 里面乘方就是这样子的。。。
2008年12月14日 07:36
逛网上太多了,被影响了`以前我刚在网上看这样的符号还不知道是什么意思,后来才知道乘方键盘不好写...所以这样写
2008年12月14日 12:25
@TLHL28: 看来我的数学不错……
@test: 看来我是程序员转世……
@g.zhen.ning: 看来我前面在 YY ……
2008年12月15日 01:59
恩```
2008年12月17日 10:53
是BASIC吧,哈哈
2008年12月19日 01:28
汗,果然是 basic ……
2008年12月20日 21:37
TeX
2008年12月21日 18:29
啊,原来是 TeX 数学公式,我咋把这个忘了……
2016年11月08日 14:27
Try some other alternative way to deliver string on it
2022年3月17日 02:42
Some truly wonderful work on behalf of the owner of this internet site , perfectly great articles . pinwheel sex toy
2022年5月28日 00:20
Thank you so much for sharing this great blog.Very inspiring and helpful too.Hope you continue to share more of your ideas.I will definitely love to read. pragmatic play
2022年5月28日 20:34
I think this is one of the most significant information for me. And i’m glad reading your article. But should remark on some general things, The web site style is perfect, the articles is really great : D. Good job, cheers https://www.allpgslot.com
2022年5月29日 20:40
hi was just seeing if you minded a comment. i like your website and the thme you picked is super. I will be back. http://www.ibiza55.com
2022年5月31日 17:35
Remarkable article, it is particularly useful! I quietly began in this, and I'm becoming more acquainted with it better! Delights, keep doing more and extra impressive! https://guzaclub88.com
2022年6月06日 03:23
What a fantabulous post this has been. Never seen this kind of useful post. I am grateful to you and expect more number of posts like these. Thank you very much. kingsmodapk
2022年6月20日 20:09
You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers. 토토사이트
2022年6月21日 05:14
Hi there! Nice post! Please tell us when I will see a follow up! lcctoto
2022年6月21日 05:51
I really like your writing style, great information, thankyou for posting. jstimesnow
2022年6月21日 06:55
Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info specially the last part I care for such information a lot. I was seeking this certain info for a long time. Thank you and good luck. good morning images
2022年6月22日 00:16
Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. immobilien haren
2022年6月22日 03:43
Pretty nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed browsing your blog posts. After all I’ll be subscribing to your feed and I hope you write again soon! Sildenafil 100mg kaufen
2022年6月27日 18:18
Hi there! Nice post! Please tell us when I will see a follow up! sprężyny subaru forester
2022年6月28日 02:01
Hi there! Nice post! Please tell us when I will see a follow up! fashion accessories
2022年7月03日 23:21
Wow, this is really interesting reading. I am glad I found this and got to read it. Great job on this content. I like it. credit cards
2022年7月16日 21:17
Hi there! Nice stuff, do keep me posted when you post again something like this! chateau for sale
2022年7月18日 17:20
Hi there! Nice post! Please tell us when I will see a follow up! https://softwareacademy.bg/index.php?q=question&id=121&ask=Как_се_прави_уеб_сайт
2022年7月19日 23:27
Hi there! Nice post! Please tell us when I will see a follow up! 바카라
2022年7月22日 02:21 Nice to be visiting your blog once more, it has been months for me. Well this article that ive been waited for therefore long. i want this article to finish my assignment within the faculty, and it has same topic together with your article. Thanks, nice share. www.finduslawyers.org
2022年7月25日 18:10 Your article has piqued a lot of positive interest. I can see why since you have done such a good job of making it interesting. https://designacademy.bg/index.php?q=question&id=1242&ask=Къде_да_уча_фотография
2022年7月27日 21:17 i am always looking for some free stuffs over the internet. there are also some companies which gives free samples. Save Money
2022年8月23日 21:18
I think this is a really good article. You make this information interesting and engaging. You give readers a lot to think about and I appreciate that kind of writing. <a href="https://xtune.eu/">acl race</a>
2022年9月29日 20:10
I am glad you take pride in what you write. This makes you stand way out from many other writers that push poorly written content. 토토커뮤니티
2022年10月21日 18:31
Thank you very much for writing such an interesting article on this topic. This has really made me think and I hope to read more. cheap smm panel
2022年10月22日 20:14
Someone Sometimes with visits your blog regularly and recommended it in my experience to read as well. The way of writing is excellent and also the content is top-notch. Thanks for that insight you provide the readers! aydın escort
2022年11月07日 07:06
Your work is truly appreciated round the clock and the globe. It is incredibly a comprehensive and helpful blog. https://bookmark-group.com/story13621612/core-play-iptv-a-melhor-lista-iptv-teste-gr%C3%A1tis
2022年11月15日 23:34
You completed a few fine points there. I did a search on the subject and found nearly all persons will go along with with your blog. propernews
2022年11月16日 06:24
Thank you for your very good information and feedback from you. san jose car dealers <a href="https://newswirebest.com/frame-to-guide-for-small-businesses/">find your business plan</a>
2022年11月19日 17:41
You have outdone yourself this time. It is probably the best, most short step by step guide that I have ever seen. live score
2022年11月22日 23:39 I am extremely delighted in for this web journal. Its a useful subject. It help me all that much to take care of a few issues. Its chance are so awesome and working style so rapid. asianbookie livescore
2022年12月06日 16:43
Pretty nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed browsing your blog posts. After all I’ll be subscribing to your feed and I hope you write again soon! 꽁머니 5만
2022年12月14日 19:13
Approved This blog website is pretty cool! How was it made !
2022年12月28日 17:25
When your website or blog goes live for the first time, it is exciting. That is until you realize no one but you and your. asianbookie handicap
2022年12月30日 23:54
Great knowledge, do anyone mind merely reference back to it Dubai Safari
2023年1月02日 17:26
Your work is truly appreciated round the clock and the globe. It is incredibly a comprehensive and helpful blog. Desert Safari Dubai
2023年1月04日 19:17
I am glad you take pride in what you write. This makes you stand way out from many other writers that push poorly written content. Desert safari in Dubai
2023年2月04日 17:14
I genuinely believed you would probably have something useful to say. All I hear is a bunch of whining about something that you can fix if you were not too busy looking for attention. After all, I know it was my choice to read.. spbo live score indonesia
2023年2月14日 18:22
Thank you for your very good information and feedback from you. san jose car dealers <a href="https://www.fiverr.com/share/GgBzpq">search engine optimization</a>
2023年2月14日 18:24
Thank you for your very good information and feedback from you. san jose car dealers search engine optimization
2023年3月14日 17:22
Incredible articles and awesome design. Your blog entry merits the greater part of the positive input it"s been getting. asianbookie bandar
2023年4月09日 18:45
This is a truly good site post. Not too many people would actually, the way you just did. I am really impressed that there is so much information about this subject that have been uncovered and you’ve done your best, with so much class. If wanted to know more about green smoke reviews, than by all means come in and check our stuff. spbo indonesia