Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7913001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:44:26+00:00 2026-06-03T13:44:26+00:00

When the numbers are really small, Matlab automatically shows them formatted in Scientific Notation.

  • 0

When the numbers are really small, Matlab automatically shows them formatted in Scientific Notation.

Example:

A = rand(3) / 10000000000000000;

A =

  1.0e-016 *

    0.6340    0.1077    0.6477
    0.3012    0.7984    0.0551
    0.5830    0.8751    0.9386

Is there some in-built function which returns the exponent? Something like: getExponent(A) = -16?

I know this is sort of a stupid question, but I need to check hundreds of matrices and I can’t seem to figure it out.

Thank you for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T13:44:28+00:00Added an answer on June 3, 2026 at 1:44 pm

    Basic math can tell you that:

    floor(log10(N))
    

    The log base 10 of a number tells you approximately how many digits before the decimal are in that number.

    For instance, 99987123459823754 is 9.998E+016

    log10(99987123459823754) is 16.9999441, the floor of which is 16 – which can basically tell you “the exponent in scientific notation is 16, very close to being 17”.

    Floor always rounds down, so you don’t need to worry about small exponents:

    0.000000000003754 = 3.754E-012
    log10(0.000000000003754) = -11.425
    floor(log10(0.000000000003754)) = -12
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In the app I'm building now I use some really small numbers( 4.12027703723203E-18 ,
Alright, I have a really basic QStandardItemModel , filled with some numbers. I managed
Let's say you have a small calculator program that takes numbers and an operator
I am trying to think of the best way to make a really small
I'm writing a small article on humanly readable alternatives to Guids/UIDs, for example those
A small query really with reference to Structs. If I had a Struct Node
I've got a really big number: 5799218898. And want to shift it right to
int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0
What numbers of arguments are used for main ? What variants of main definition
The numbers that are being pulled from an xml file and then assigned to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.