Mujeeb Ahmed Profile picture
Mar 24, 2022 10 tweets 4 min read Read on X
Number Methods in JavaScript 🔥.
A thread.
#javascript30
#webdev
1. Number() Method:-

- The Number() function is used to convert various data types to numbers.

Syntax:- Number(value)

Example:-
2. parseInt():-

- This function converts a decimal number to an integer value.

Syntax:- parseInt(value)

Example:-
3. parseFloat():-

- This function works in the same way as parseInt, but it returns both integer and decimal values.

Syntax:- parseFloat(value)

Example:-
4. isFinite():-

The Number.isFinite() method returns true if a number is a finite number.

Infinite (not finite) numbers are Infinity, -Infinity, or NaN
Otherwise it returns false.

Syntax:- Number.isFinite(value)

Example:-
5. isInteger();-

The Number.isInteger() method returns true if a value is an integer of the datatype Number.

Otherwise it returns false.

Syntax:- Number.isInteger(value)

Example:-
6. toFixed():-

- The toFixed() method converts a number to a string.

- The toFixed() method rounds the string to a specified number of decimals.

- If the number of decimals are higher than in the number, zeros are added.

Syntax :- number.toFixed(x)

Example:-
7. toPrecision():-

- The toPrecision() method formats a number to a specified length.

- A decimal point and nulls are added (if needed), to create the specified length.

Syntax:- number.toPrecision(x)

Example:-
8. toExponential() :-

- The toExponential() method converts a number into an exponential notation.

Syntax:- number.toExponential(x)

Example:-
If you enjoyed reading this thread, please do the following:
1. Retweet the first tweet.
2. Follow me and enable notifications: @mujeeb0147.

Thank you for reading all the way through👐.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Mujeeb Ahmed

Mujeeb Ahmed Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @hey_mujeebahmed

Jan 28
SMARTPHONES WITHOUT AI ARE NO LONGER SMART.

HERE ARE 10 AI APPS YOU NEED TO HAVE ON YOUR MOBILE Image
1. Heardly

→ Save time with 8-min audio book summaries.

→ Heardly APP compresses bestsellers to 10%, offering 8-minute audio and video summaries with AI, saving your reading time everyday.
2. Otter / @otter_ai

→ OtterPilot™ enables AI-powered meetings. Get a meeting assistant that can record audio, take notes, automatically collect slides, and provide summaries.
Read 12 tweets
Jan 14
I’m shocked that many people don’t use AI to create anything.

Here is a list of 10 AI tools that can create anything for you in mins. Image
1. Meet ClipZap AI - The Top Face Swap Tool, Create personalized, automated video workflows with AI to scale content creation.

→ 🎥 Transform your videos with ClipZap AI FaceSwap! Learn dance moves by swapping your face with existing videos. Get started now!

→ 💃 Effortlessly swap faces in videos for hilarious memes and stunning visuals. Unleash your creativity now!

Get it Now → go.clipzap.ai/facetwikol
2. CopyOwl.ai – Publish in-depth, research-backed articles that make you an authority in your niche.

👉 Try for Free → CopyOwl.ai copyowl.ai

→ Write high-quality articles

→ Back them with credible sources

→ Post consistently to attract followers

“Work smarter, not harder. CopyOwl handles research and writing—you focus on influence.”
Read 12 tweets
Jan 13
12 remote jobs paying $80/hr, No Resume No Experience required Image
1. Gaggle:

→ Gaggle hires content reviewers to monitor online student activities and promote kid safety.

→ Pay ranges from $20 to $25 per hour.

→ Work include identifying potential challenges in K-12 student communications. Flexible scheduling with a minimum of 10 hours each week. Basic technological knowledge and an interest in kid safety are necessary.
2. Preply:

→ Preply is an online tutoring company that provides possibilities in more than 100 courses.

→ Set your own rates, with potential revenues of more than $40 per hour.

→ There is no need for specific qualification; simply be knowledgeable about your field. Create your profile, set your schedule, and begin tutoring in as few as 5 days.
Read 13 tweets
Jan 6
8 AI websites you need to outsmart 98% of people online: Image
1. Oncely - Top 1 Lifetime Deal Marketplace for AI Software

🔗 Join for Free 👉

→ A New Way of Buying AI Software, Pay once, Use forever.

→ The smartest way to leverage AI in your business and career before everyone else.

→ 60 days money-back guarantee on all deals.oncely.com/subscribe
2. ClickUp / @clickup

→ A versatile project management tool that helps teams organize tasks, collaborate, and track progress all in one place.

→ Offers customizable views, time tracking, and automation, enabling teams to streamline workflows and enhance productivity.

clickup.com
Read 10 tweets
Jan 3
8 hidden AI website that turn a full day's work into just 1 hour.

[Bookmark Now 🔖] Image
1. Flot AI: Your Anywhere AI Assistant 🌟

Effortlessly write, read, and manage tasks across websites, apps, docs, and emails with top AI models like ChatGPT, Claude, and Gemini.

Download Free →

Use cases:

📧 Quick email replies
📝 Create posts
🪄 Fix grammar & spelling
🖋️ Paraphrase & translateflot.ai
2. CopyOwl.ai – Publish in-depth, research-backed articles that make you an authority in your niche.

Try for Free → CopyOwl.ai

→ Write high-quality articles
→ Back them with credible sources
→ Post consistently to attract followers

“Work smarter, not harder. CopyOwl handles research and writing—you focus on influence.”
Read 10 tweets
Jan 2
I'm surprised by how many people use pointless apps on their smartphones.

Here are 15 apps you need but didn't know about: Image
1. Heardly

→ Save time with 8-min audio book summaries.

→ Heardly APP compresses bestsellers to 10%, offering 8-minute audio and video summaries with AI, saving your reading time everyday.
2. InVideo / @invideoOfficial

→ InVideo enables users to create professional-quality videos effortlessly with customisable templates and access to a vast media library.
Read 17 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(