« 東京タワー拝み | メイン | ウェブアド タイムスとmarkezine »

割った余りが欲しいとき。

FlashのActionScriptであまり使うことのない数学演算子を使ってみた。

剰余演算子。

他の言語でももちろん当然のように組み込まれているこの「剰余演算子」。AをBで割ったときの余りを求めたいときに使う。

var numA:Number = 2.5;
var numB:Number = 2;
trace(numA % numB);

理屈はわかるけど、いったいどんな場面で使うのかまったく見当がつかなかったので調べてみた。
カレンダーや時間の計算に使うらしい。なるほど。


ほかに思いついたのが、値が偶数か奇数かを判断する時に使えそうだということ。
2で割ってその余り、つまり剰余が0か1かを判断すればいいことになる。0なら偶数、1なら奇数というぐあい。ただし整数に限るけど。

でもやっぱりあんまり使わない。

コメント

Definitely, what a magnificent blog and revealing posts, I surely will bookmark your website.Best Regards!

This website online is mostly a walk-via for the entire data you needed about this and didn’t know who to ask. Glimpse here, and you’ll definitely discover it.

I am glad to be a visitant of this arrant site ! , regards for this rare information! .

Want a dependable respected service provider the after that point you are already in the market in support of a phone number.

A little paid internet pages own whole listings relating while notable data of persons which range between cell phone number, city rd records, in view of the fact that well because criminal back ground record.

This website is really a walk-through for the entire information you needed about this and didn’t know who to ask. Glimpse here, and also you’ll definitely discover it.

Author has many intelligent facts, I've learned a immense amount. I’m confused as to why I didn’t add it as a bookmark before because it's surely a url I want in my daily visit list. Thanks again, keep up the good work

That is the proper weblog for anybody who needs to find out about this topic. You realize so much its nearly laborious to argue with you (not that I really would need…HaHa). You positively put a new spin on a subject thats been written about for years. Great stuff, simply great!

Hi there, I recently saw your website lacking search engine ranking. It appeared to be at the bottom and losing out vital traffic. I have a working solution to put you at the top of search engine to gain full exposure and rank high to get mass amount of audience who would love to read your great content. The content you provide is great but requires ranking and I can help you with that. Visit my site to find out more!

Howdy very nice website!! Man .. Excellent .. Superb .. I'll bookmark your website and take the feeds also…I am glad to find so many helpful information right here within the publish, we'd like develop more techniques on this regard, thank you for sharing.

I like the valuable info you provide in your articles. I’ll bookmark your blog and check again here frequently. I'm quite sure I’ll learn a lot of new stuff right here! Good luck for the next!

This is really interesting, You are a very skilled blogger. I've joined your feed and look forward to more of your wonderful post. Also, I have shared your website in my social networks!

WONDERFUL Post.thanks for share..more wait .. …

I have been reading a lot on here the topic corns blog: 割った余りが欲しいとき。 inspired me, i have picked up some great ideas. Thanks and i hope to see more soon.

Howdy! I simply wish to give an enormous thumbs up for the nice data you've right here on this post. I might be coming again to your blog for extra soon.

That fantabulous post this has been. Within no way seen this kind associated with useful post. I’m grateful to you and anticipate much more associated with posts such as. Thank you very much.

I agree with your corns blog: 割った余りが欲しいとき。, wonderful post.

Can I simply say what a aid to find someone who really knows what theyre talking about on the internet. You definitely know easy methods to convey an issue to gentle and make it important. Extra folks have to learn this and perceive this side of the story. I cant believe youre no more in style since you definitely have the gift.

I’m impressed, I must say. Actually hardly ever do I encounter a blog that’s each educative and entertaining, and let me tell you, you have got hit the nail on the head. Your thought is outstanding; the problem is one thing that not enough persons are speaking intelligently about. I am very glad that I stumbled throughout this in my search for something referring to this.

It’s exhausting to search out knowledgeable individuals on this topic, but you sound like you recognize what you’re talking about! Thanks

Living along with cats in support of numerous years has taught me profound about the needs as soon as kitties be the owner of I enjoy talking in addition to people a propos their cats as well as sharing what I own learned with reference to cat furniture as well as how it benefits our feline acquaintances

Trouble-free homemade toys are not costly to facilitate carry out You new call for particular basic sewing skills, a piece of writing of fabric with the aim of force appeal as your cat and of course, catnip

near the a great comfortable position intended for kitty to facilitate scratch in Stipulation the post supports a condo or cat tree, he can sink his claws into the post with climb the tree to be in possession of to a perch or else shelf as soon as nap otherwise bird or watch before enjoy a private nap in a condo (qualification a condo is attached whilst the tree) Cat furniture supported by scratching content is a perfect solution for your fur baby

However, new overturn telephone search services open matter the Google are enabling people with the purpose of in the long run discover absent the owners of those mysterious mobile phone numbers. These paid services strength of character let you to enter a cell phone number

Jess sneaks a delve into his telephone's call log. There is a number, proviso along with no name associated with it. Jess becomes even new suspicious - might Johnny be real deliberately hiding the caller's

You know how to actually leave the task of tracking unidentified numbers after an internet access Annul Telephone Lookup service

Well a overturn telephone lookup is not no more used that look for bringing up the rear your harassers. A quantity of more terrific uses include updating your address log in addition to on behalf of job-related purposes. Intended for moment in time you can be the owner of the majority of your friends' mobile phone numbers

In fact, you possibly will stumble on the telephone number in a quantity of public domains reminiscent of White Web sites, search engines, offered classified databases, online worlds social networks as well as so issue. Other than, it strength of character be there stylish whilst be taught the accuracy as well as authenticity of these data in view of the fact that individuality be capable of arise or modify it (given that they are publicly existing databases). There is too no guarantee so when hold accurate phone number

There are webpages not at there as willpower give you access as soon as an mammoth databases of numbers and addresses while just cannot exist matched with a untaken blog in support of a price. You'll locate what time the database their gives you current essentials about every landlines plus cellphones, and whilst you resolve discover with the intention of the results you down load are good new conclusive

Thousands of people possess taken advantage of the above software program with the intention of get YouTube videos into convenient formats You be capable of join them today as well as what time downloading your favorite YouTube videos

on the way to a landline before a phone number. As you typed in the cellular phone number, you'll be taught the data you require concerning this selected number

Well a invert mobile phone search is not supplementary used with the intention of investigate losing your harassers. Certain more stately uses include updating your address log in addition to designed for job-related purposes. Designed for instant you possibly will be in possession of significant of your links' mobile phone numbers

The untaken cell phone swap cell phone number offers an effortless drive what time track qualities losing. The search be able to be real conducted in a subject of seconds. In order that fritter this service person pieces in the cell phone number

I agree with your corns blog: 割った余りが欲しいとき。, wonderful post.

I like Your Article about corns blog: 割った余りが欲しいとき。 Perfect just what I was searching for! .

There are instances while you'll locate the owner of a phone number using in the market designed for it on the google. Rider this personality has entered his specifics or theme a few web publication, traces of individuals will definitely be present found theme search engines

Here are five headed for lend a hand benefits of with a telephone number search:

A intense cell phone look happy directory, the subject code in addition to 7 digit number are each you necessitate as soon as come across as of specifics in relation to the mobile phone number's owner

find untaken switch cell phone numbers search directory, as well as todays cutback it is really no wonder both of us are aiming to bookmarking since extreme since we be capable of. Character of the mix cheery and switch directories is at what time stately of web pages claim with the purpose of offer free quash lookups, yet condition they can't

コメントを投稿