Why don’t AccountingForm, NumberForm and DecimalForm print more decimals?

I have the following set of equations:

xs = 9295050963679385441209; ys = 10721945986215692199666; x = xs - 10000; exponent = 0.666451549104308964``18; xs1gt = Power[xs,exponent]; 

Which should produce ~437295921404696.997750975489799605.

If I naively print xs1gt, I get this:

4.372959214046970*10^14 

I looked for solutions on StackExchange, and I found the How to avoid the scientific notation in output? thread. Unfortunately, none of the solutions proposed there worked:

AccountingForm[xs1gt, 33] DecimalForm[xs1gt, {15, 18}] N[xs1gt, 33] NumberForm[xs1gt, 33] NumberForm[xs1gt, 33, ExponentFunction->(Null&)] NumberForm[xs1gt, 33, ScientificNotationThreshold->{-Infinity, Infinity}] 

Outputs:

437295921404697.0 437295921404697.000000000000000000 4.372959214046970*10^14 4.372959214046970*10^14 437295921404697.0 437295921404697.0 

I searched high and low for alternatives, and I stumbled upon InputForm and SetPrecision, which finally gave me satisfactory results:

InputForm[xs1gt] SetPrecision[xs1gt, 33] 

Outputs:

4.372959214046969977509754897996045`16.295988813986288*10^14 4.37295921404696997750975489799605*^14  

Now my question is why didn’t the other approaches, i.e. AccountingForm, DecimalForm and NumberForm, produce a similar result with 33 significant figures of precision (15 digits and 18 decimals)? I am especially confused by DecimalForm not having worked the way I expected.

Why don’t my keypresses work in Pygame?

I don’t know why my attempt to read keypresses in Pygame is not working.

import pygame  pygame.init()    white = (255, 255, 255) green = (0, 255, 0) blue = (0, 0, 128) black = (0, 0, 0) red = (255, 0, 0)  w = 500 h = 500  x = 15 y = 480 vel = 5 screen = pygame.display.set_mode((w, h))  square = pygame.image.load(r'/Users/lanik2009/Downloads/square.PNG') square = pygame.transform.scale(square, (46, 40)) triangle = pygame.image.load(r'/Users/lanik2009/Downloads/triangle.PNG') triangle = pygame.transform.scale(triangle, (46, 40))  def player():     screen.fill(black)     pygame.draw.circle(screen,white, (15, 480), 10, 500)     screen.blit(triangle, (80, 460))     screen.blit(square, (180, 460))          running = True  while running:            for event in pygame.event.get():         if event.type == pygame.QUIT:             running = False      userInput = pygame.key.get_pressed()     if userInput[pygame.K_LEFT]:         x = -vel     if userInput[pygame.K_RIGHT]:         x = vel          player()     pygame.display.update()  

Loco translated language files in plugin folder don’t work

I created an own plugin wished to make it translatable. So I made a template with loco translate. pot file was put to plugins/my-plugin/lanuages/ folder as desired. Than I made a translation to my language (hungarian) to the same location. Nothing happend. Than I created one more translation on the same language but not to Author (plugins/my-plugin/languages) destination but System (languages/plugins/my-plugin). And it worked that way. I dont’t now why it does not work in plugin folder. Plugin header is set to /languages/ to store the translation files. POT file also got there by default so it has no sense. I want to provide some translation with my plugin but it would work if the translation were in plugin not in system folder. Any idea?

Why Beat ’em Ups don’t allow players to face toward or away from the screen

Most Beat ’em Ups don’t allow players to face away or towards the screen: example, in Streets of Rage, when you press up, the character moves up but still facing either left or right and same goes when you press down. Even in modern Beat ’em Ups, this is the case. What is the reason for this? I used to think this is because the graphics are 2D so its harder or more work to get characters to face towards or away from the screen. But even in Beat ’em Ups that uses 3D graphics, this is still the case, like Double Dragon Neon.

One more thing, if you know any Beat ’em Ups that does do this, can you post the name of the game here. I am interested on how that behaves.

Shortcode don’t work ? An idea?

I want to create a shortcode where content is displayed if user meta is equal to a value

But i want multiple values possible

show content if usermeta firstname is cory or jeff or boris…

Exemple [usermeta_value usermeta="firstname" uservalue="Cory,Jeff,Boris"] show content [/usermeta_value]

function func_usermeta_value( $  atts, $  content = null ) if ( is_user_logged_in() ) {  $  user_meta = $  atts['usermeta'];     $  user_value = $  atts['uservalue']; $  allowed_value = explode(',', $  user_value);          $  user_id = get_current_user_id();      $  user_data = get_userdata( $  user_id );      if ( strtolower($  user_data->$  user_meta) == strtolower($  allowed_value) ) {          return do_shortcode($  content); /* show content from shortcode */     } } return ''; } add_shortcode( 'usermeta_value', 'func_usermeta_value' ); 

Thx for your help

Can a mage cast spells that they don’t have as a rote/praxis?

From what I can read in the rulebook, there are three main ways to cast a spell:

  • Improvised spells, which always have a set of general effects.
  • Rotes, which treat the highest arcanum as 5 dots for the purposes of Reach, cost no mana and allow the caster to use mudras as yantras.
  • Praxes, which also cost no mana and crit success on 3 successes.

Did I miss a part of the book that describes how to cast existing spells outside these 3 ways? If so, please point me to the right section of the book.

How do I handle players that don’t care for the rules I put in place as the DM and question everything I do?

I am DMing a game of dnd 5e or close to it. It’s a homebrew campaign. We are mostly new to D&D with the exception of 2 players that play with other groups.

I have 2 players that seem to question everything I do as a DM and make the game hard to DM. One of the things they question is cantrips.

I had one of my players call my ruling stupid and log out. To put it into context I make my players roll to see if they can land the cantrip. 2 of my players have recently questioned why they have to roll at all and why it just doesn’t do what they believe it should do. But there is nothing in the rules about rolling and cantrips.

It was a cantrip called "mend" and he was trying to use it to repair his armor which had been broken. I made him roll to see how well he repaired it and he got a 2 so it didn’t repair much. He went behind my back and spoke to another player about how it was stupid and "that’s not how cantrips work" even though he was able to cast the spell, just not well.

I don’t want to just put my foot down and say "I’m the DM, what I say goes" but they won’t listen to my reasoning and just keep saying I’m wrong. How do I handle this situation? It’s getting to the point where I am considering stopping DMing all together.

Why don’t adventurers suffocate in lower levels of dungeons?

Why don’t adventurers (and monsters) suffocate in lower levels of dungeons?

I asked a question about this on Physics to check my reasoning. Why does Nitrogen not sink in air if other dense gases do? An answer states that CO2, which is a product of exhalation, will sink to lower levels in enclosed spaces. There is also a hazard in mines generally from gases seeping out of the rocks.

Question

How do PCs and NPCs survive in such conditions? If there is some form of ventilation to the outside world, can explorers escape through the ducts?